[gtk+/gtk-3-22] GDK W32: Remove unneeded assertion



commit 51645b585123de193da0360d3a69f767a3c4fa59
Author: Руслан Ижбулатов <lrn1986 gmail com>
Date:   Mon Jan 9 09:53:46 2017 +0000

    GDK W32: Remove unneeded assertion
    
    Just set check_for_dpi_awareness = TRUE and eventually it will be handled
    correctly, even if setDpiAwareFunc() returns E_ACCESSDENIED or shcore functions
    are NULL.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=777031

 gdk/win32/gdkdisplay-win32.c |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/gdk/win32/gdkdisplay-win32.c b/gdk/win32/gdkdisplay-win32.c
index ceec5b3..4bc88fb 100644
--- a/gdk/win32/gdkdisplay-win32.c
+++ b/gdk/win32/gdkdisplay-win32.c
@@ -934,13 +934,9 @@ _gdk_win32_enable_hidpi (GdkWin32Display *display)
                     break;
                 }
             }
-
-          /* Should not get here! */
-          if (status == DPI_STATUS_PENDING)
+          else
             {
-              g_assert_not_reached ();
-              display->dpi_aware_type = PROCESS_DPI_UNAWARE;
-              status = DPI_STATUS_FAILED;
+              check_for_dpi_awareness = TRUE;
             }
         }
       else


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