[gtk+] win32: Stop using gdk_screen_get_display



commit dcf2553f238be82fca5ac70bd8294a0737cc206c
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Nov 1 20:54:50 2017 -0400

    win32: Stop using gdk_screen_get_display
    
    We can just use the field directly.

 gdk/win32/gdkscreen-win32.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdk/win32/gdkscreen-win32.c b/gdk/win32/gdkscreen-win32.c
index 4c9b4d7..3fda74a 100644
--- a/gdk/win32/gdkscreen-win32.c
+++ b/gdk/win32/gdkscreen-win32.c
@@ -158,7 +158,7 @@ _gdk_win32_screen_set_font_resolution (GdkWin32Screen *win32_screen)
   else
     {
       gint dpi = -1;
-      GdkWin32Display *win32_display = GDK_WIN32_DISPLAY (gdk_screen_get_display (screen));
+      GdkWin32Display *win32_display = GDK_WIN32_DISPLAY (screen->display);
       guint scale = _gdk_win32_display_get_monitor_scale_factor (win32_display, NULL, NULL, &dpi);
 
       /* If we have a scale that is at least 2, don't scale up the fonts */


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