summaryrefslogtreecommitdiff
path: root/libview/ev-pixbuf-cache.c
diff options
context:
space:
mode:
authorCarlos Garcia Campos <[email protected]>2014-07-24 13:16:02 +0200
committerraveit65 <[email protected]>2018-03-26 13:49:10 +0200
commit5345f83e9410af181e2a4329f3fc4f72d98f6468 (patch)
tree8741b22babdecea956f8546164a9fa822182c977 /libview/ev-pixbuf-cache.c
parent2cae078d88eb5e7d2e5891cb03cdb90b7852cc03 (diff)
downloadatril-5345f83e9410af181e2a4329f3fc4f72d98f6468.tar.bz2
atril-5345f83e9410af181e2a4329f3fc4f72d98f6468.tar.xz
libview: Fix g_return condition in set_device_scale_on_surface()
Fail when device scale is not 1 if hidpi is not available, we were doing the opposite. origin commit: https://git.gnome.org/browse/evince/commit/?id=90a258
Diffstat (limited to 'libview/ev-pixbuf-cache.c')
-rw-r--r--libview/ev-pixbuf-cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libview/ev-pixbuf-cache.c b/libview/ev-pixbuf-cache.c
index 89c5cd5e..ca96d484 100644
--- a/libview/ev-pixbuf-cache.c
+++ b/libview/ev-pixbuf-cache.c
@@ -265,7 +265,7 @@ set_device_scale_on_surface (cairo_surface_t *surface,
#ifdef HAVE_HIDPI_SUPPORT
cairo_surface_set_device_scale (surface, device_scale, device_scale);
#else
- g_return_if_fail (device_scale != 1);
+ g_return_if_fail (device_scale == 1);
#endif
}