diff options
author | Matthew Petroff <[email protected]> | 2016-10-18 15:10:13 -0400 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-08-12 22:01:34 +0200 |
commit | b6a20b77926727af99b39773ee104ffa457c604f (patch) | |
tree | 16a6ce7fa9b585f4e70d8743554ca30933a554d4 /configure.ac | |
parent | 6217ba3214fb0284eb569ed22b5700ad2c6b5817 (diff) | |
download | atril-b6a20b77926727af99b39773ee104ffa457c604f.tar.bz2 atril-b6a20b77926727af99b39773ee104ffa457c604f.tar.xz |
Add hi-dpi support for main view.
Based on Evince commits 8b965e769808815df9c75a10a0e4972c0904d26a
and a612f809e4e23d88a661a9604ce84f332189a658.
https://github.com/linuxmint/xreader/commit/4eccf6b
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index b0d22d03..55149721 100644 --- a/configure.ac +++ b/configure.ac @@ -123,6 +123,23 @@ PKG_CHECK_MODULES(GMODULE, gmodule-2.0 >= $GLIB_REQUIRED) PKG_CHECK_MODULES([SHELL_CORE],[libxml-2.0 >= $LIBXML_REQUIRED gtk+-3.0 >= $GTK_REQUIRED gio-2.0 >= $GLIB_REQUIRED gthread-2.0 x11]) +# Although GTK+ 3.10 includes hi-dpi functionality, it does not require a cairo with +# cairo_surface_set_device_scale(), which we also need if we're to support hi-dpi, +# so we need check for that explicity. + +atril_save_LIBS=$LIBS +LIBS="$LIBS $LIBVIEW_LIBS" +AC_CHECK_FUNCS(cairo_surface_set_device_scale) +LIBS=$atril_save_LIBS + +AC_MSG_CHECKING([for hi-dpi support]) +if test "$ac_cv_func_cairo_surface_set_device_scale" = yes ; then + AC_DEFINE([HAVE_HIDPI_SUPPORT], [1], [Define if cairo and GTK+ have necessary functions for hi-dpi]) + AC_MSG_RESULT([yes]) +else + AC_MSG_RESULT([no]) +fi + dnl dnl zlib support dnl |