summaryrefslogtreecommitdiff
path: root/libview/ev-pixbuf-cache.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-pixbuf-cache.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-pixbuf-cache.c')
-rw-r--r--libview/ev-pixbuf-cache.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/libview/ev-pixbuf-cache.c b/libview/ev-pixbuf-cache.c
index ca96d484..3b353c98 100644
--- a/libview/ev-pixbuf-cache.c
+++ b/libview/ev-pixbuf-cache.c
@@ -251,22 +251,14 @@ ev_pixbuf_cache_set_max_size (EvPixbufCache *pixbuf_cache,
static int
get_device_scale (EvPixbufCache *pixbuf_cache)
{
-#ifdef HAVE_HIDPI_SUPPORT
return gtk_widget_get_scale_factor (pixbuf_cache->view);
-#else
- return 1;
-#endif
}
static void
set_device_scale_on_surface (cairo_surface_t *surface,
int device_scale)
{
-#ifdef HAVE_HIDPI_SUPPORT
cairo_surface_set_device_scale (surface, device_scale, device_scale);
-#else
- g_return_if_fail (device_scale == 1);
-#endif
}
static void