summaryrefslogtreecommitdiff
path: root/libview/ev-view.c
diff options
context:
space:
mode:
authorMatthew Petroff <[email protected]>2016-11-04 15:41:10 -0400
committerraveit65 <[email protected]>2019-06-26 13:47:48 +0200
commit449f6af7514251c7dda6fdf4ad2d1c6e37d42835 (patch)
tree66bc7034bfbc0f109741fb8e8761f0ec829a5a56 /libview/ev-view.c
parent5086f1af00443e7d41ee37871601b40f567f6e72 (diff)
downloadatril-449f6af7514251c7dda6fdf4ad2d1c6e37d42835.tar.bz2
atril-449f6af7514251c7dda6fdf4ad2d1c6e37d42835.tar.xz
Bump Cairo version to 1.14.0
such that hi-dpi conditionals aren't needed. origin commit: https://github.com/linuxmint/xreader/commit/df3cdc6
Diffstat (limited to 'libview/ev-view.c')
-rw-r--r--libview/ev-view.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/libview/ev-view.c b/libview/ev-view.c
index 2db3eb2b..e08db24f 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -5707,9 +5707,7 @@ draw_surface (cairo_t *cr,
gdouble width, height;
gdouble device_scale_x = 1, device_scale_y = 1;
-#ifdef HAVE_HIDPI_SUPPORT
cairo_surface_get_device_scale (surface, &device_scale_x, &device_scale_y);
-#endif
width = cairo_image_surface_get_width (surface) / device_scale_x;
height = cairo_image_surface_get_height (surface) / device_scale_y;
@@ -5841,9 +5839,7 @@ draw_one_page (EvView *view,
return;
}
-#ifdef HAVE_HIDPI_SUPPORT
cairo_surface_get_device_scale (page_surface, &device_scale_x, &device_scale_y);
-#endif
if (page == current_page)
ev_view_set_loading (view, FALSE);
@@ -5878,9 +5874,7 @@ draw_one_page (EvView *view,
scale_x = (gdouble)width / cairo_image_surface_get_width (page_surface);
scale_y = (gdouble)height / cairo_image_surface_get_height (page_surface);
-#ifdef HAVE_HIDPI_SUPPORT
cairo_surface_get_device_scale (page_surface, &device_scale_x, &device_scale_y);
-#endif
scale_x *= device_scale_x;
scale_y *= device_scale_y;