[gtk/gtk3.win.egl.unfullscreen: 7/7] gdkwindow-win32.c: Fix GLES glitches during un-fullscreen



commit f63a6c0d521a364fc00684add0fefa94e0e15933
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Mon Mar 18 15:15:13 2019 +0800

    gdkwindow-win32.c: Fix GLES glitches during un-fullscreen
    
    We also need to force redraw of the whole window when we are using
    EGL/ANGLE during un-fullscreen, so that we do not get glitches in the
    resulting window.

 gdk/win32/gdkwindow-win32.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/gdk/win32/gdkwindow-win32.c b/gdk/win32/gdkwindow-win32.c
index 3951387e19..d0ad2f9fe2 100644
--- a/gdk/win32/gdkwindow-win32.c
+++ b/gdk/win32/gdkwindow-win32.c
@@ -5373,6 +5373,7 @@ gdk_win32_window_unfullscreen (GdkWindow *window)
 
       impl->hint_flags = fi->hint_flags;
       SetWindowLong (GDK_WINDOW_HWND (window), GWL_STYLE, fi->style);
+      _gdk_win32_window_invalidate_egl_framebuffer (window);
       API_CALL (SetWindowPos, (GDK_WINDOW_HWND (window), HWND_NOTOPMOST,
                               fi->r.left, fi->r.top,
                               fi->r.right - fi->r.left, fi->r.bottom - fi->r.top,


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