summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Bacci <luca.bacci982@gmail.com>2021-12-14 18:32:51 +0100
committerLuca Bacci <luca.bacci982@gmail.com>2022-01-02 18:42:31 +0100
commit7a1004df7313518c5a9edf272000c502a33b5b47 (patch)
treed9feca05ee82172e6f1d9c8b46db39870406b9b2
parent0e86d2b3452260b74c4b147df02231139bb2428a (diff)
downloadgtk+-7a1004df7313518c5a9edf272000c502a33b5b47.tar.gz
Remove WM_SYNCPAINT message handler
It was added to work around what seemed to be an OS or graphics driver issue on Windows XP. The issue was not reproducible on Windows Vista anyway. References: * https://bugzilla.gnome.org/show_bug.cgi?id=153567 * https://gitlab.gnome.org/GNOME/gtk/-/commit/c8fef535 * https://devblogs.microsoft.com/oldnewthing/20120723-00/?p=7073
-rw-r--r--gdk/win32/gdkevents-win32.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/gdk/win32/gdkevents-win32.c b/gdk/win32/gdkevents-win32.c
index 6327cca1c2..bc7590aa13 100644
--- a/gdk/win32/gdkevents-win32.c
+++ b/gdk/win32/gdkevents-win32.c
@@ -157,7 +157,6 @@ static HKL latin_locale = NULL;
static gboolean in_ime_composition = FALSE;
static UINT modal_timer;
-static UINT sync_timer = 0;
static int debug_indent = 0;
@@ -1453,23 +1452,6 @@ _gdk_win32_end_modal_call (GdkWin32ModalOpKind kind)
}
}
-static VOID CALLBACK
-sync_timer_proc (HWND hwnd,
- UINT msg,
- UINT_PTR id,
- DWORD time)
-{
- MSG message;
- if (PeekMessageW (&message, hwnd, WM_PAINT, WM_PAINT, PM_REMOVE))
- {
- return;
- }
-
- RedrawWindow (hwnd, NULL, NULL, RDW_INVALIDATE|RDW_UPDATENOW|RDW_ALLCHILDREN);
-
- KillTimer (hwnd, sync_timer);
-}
-
static gboolean
handle_nchittest (HWND hwnd,
GdkSurface *window,
@@ -2854,12 +2836,6 @@ gdk_event_translate (MSG *msg,
*ret_valp = 1;
break;
- case WM_SYNCPAINT:
- sync_timer = SetTimer (GDK_SURFACE_HWND (window),
- 1,
- 200, sync_timer_proc);
- break;
-
case WM_PAINT:
handle_wm_paint (msg, window);
break;