mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-06 00:30:08 +00:00
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.
This commit is contained in:
parent
8383f003f3
commit
66f1deef40
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user