From 16b8e2856cdfed478039dc29f6a2c6645c14fe69 Mon Sep 17 00:00:00 2001 From: Michael Vrhel Date: Tue, 28 May 2013 00:12:55 -0700 Subject: Fix for issue of link rectangle display when device is rotated. The links rectangles need to be recomputed when we have a device orientation change occur. When a change in orientation occurs, the current rects are marked as being invalid and will be redrawn when needed. --- winrt/mupdf_cpp/MainPage.xaml.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'winrt/mupdf_cpp/MainPage.xaml.h') diff --git a/winrt/mupdf_cpp/MainPage.xaml.h b/winrt/mupdf_cpp/MainPage.xaml.h index 96476361..162e0985 100644 --- a/winrt/mupdf_cpp/MainPage.xaml.h +++ b/winrt/mupdf_cpp/MainPage.xaml.h @@ -133,6 +133,8 @@ namespace mupdf_cpp void ReleasePages(int old_page, int new_page); void Linker(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e); void AddLinkCanvas(); + void ClearLinks(); + void InvalidateLinks(); void ContentDisplay(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e); void FlattenOutline(fz_outline *outline, int level); void ListView_Single_Tap(Platform::Object^ sender, Windows::UI::Xaml::Input::TappedRoutedEventArgs^ e); -- cgit v1.2.3