[gtk+] Enforce a fixed scale of 1 if no cairo scale support



commit 66f1deef40df9e61f6c23534f124c6978a2218a9
Author: Alexander Larsson <alexl redhat com>
Date:   Tue Aug 20 10:29:45 2013 +0200

    Enforce a fixed scale of 1 if no cairo scale support
    
    We used to just follow the default, which would pick up scale
    changes from xsettings, but that is not right if we can't
    actually support scales.

 gdk/x11/gdkscreen-x11.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdk/x11/gdkscreen-x11.c b/gdk/x11/gdkscreen-x11.c
index 5efdf54..9f2f833 100644
--- a/gdk/x11/gdkscreen-x11.c
+++ b/gdk/x11/gdkscreen-x11.c
@@ -1070,7 +1070,7 @@ _gdk_x11_screen_new (GdkDisplay *display,
 #ifdef HAVE_CAIRO_SURFACE_SET_DEVICE_SCALE
   scale_str = g_getenv ("GDK_SCALE");
 #else
-  scale_str = NULL;
+  scale_str = "1";
 #endif
   if (scale_str)
     {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]