mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-05 16:20:10 +00:00
gdkwindow-win32: Remove queue_antiexpose implementation
Since the Win32 code never actually called InvalidateRgn or used the Win32 update area at all, that meant the only thing that could possibly invalidate the window was the Win32 window manager as part of scrolling or resizing, which would also send it a WM_PAINT message. But the WM_PAINT handling called BeginPaint / EndPaint, which clears the update area completely! We also draw out-of-band, not directly when handling WM_PAINT, so there's no way that the update area inside the Win32 WM would match our local one. There is no possible way that this queue_antiexpose implementation could do anything. Remove it.
This commit is contained in:
parent
4d8cd2f7cf
commit
8ae546857c
@ -3242,15 +3242,6 @@ static void
|
||||
_gdk_win32_window_queue_antiexpose (GdkWindow *window,
|
||||
cairo_region_t *area)
|
||||
{
|
||||
HRGN hrgn = cairo_region_to_hrgn (area, 0, 0);
|
||||
|
||||
GDK_NOTE (EVENTS, g_print ("_gdk_windowing_window_queue_antiexpose: ValidateRgn %p %s\n",
|
||||
GDK_WINDOW_HWND (window),
|
||||
_gdk_win32_cairo_region_to_string (area)));
|
||||
|
||||
ValidateRgn (GDK_WINDOW_HWND (window), hrgn);
|
||||
|
||||
DeleteObject (hrgn);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user