diff options
author | Jon TURNEY <jon.turney@dronecode.org.uk> | 2009-06-19 21:15:27 +0100 |
---|---|---|
committer | Jon TURNEY <jon.turney@dronecode.org.uk> | 2009-10-15 14:05:37 +0100 |
commit | 84274324af9a5f3bf1badc6aa44e82a70b30a4b8 (patch) | |
tree | 2c863528165257ae44c61f4a07d31c7bd8fc178c /hw/xwin/winwin32rootlesswndproc.c | |
parent | 09b34da2df4f4d8191157ae13d7ac321cb37d638 (diff) |
Handle and ignore WM_ERASEBKGND since we repaint the entire invalidated region anyhow (this avoids a white flickering on window resize)
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Diffstat (limited to 'hw/xwin/winwin32rootlesswndproc.c')
-rwxr-xr-x | hw/xwin/winwin32rootlesswndproc.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/hw/xwin/winwin32rootlesswndproc.c b/hw/xwin/winwin32rootlesswndproc.c index a70c5fc56..006a09afc 100755 --- a/hw/xwin/winwin32rootlesswndproc.c +++ b/hw/xwin/winwin32rootlesswndproc.c @@ -783,6 +783,17 @@ winMWExtWMWindowProc (HWND hwnd, UINT message, SendMessage (hwndScreen, message, wParam, lParam); return 0; + case WM_ERASEBKGND: +#if CYGDEBUG + winDebug ("winMWExtWMWindowProc - WM_ERASEBKGND\n"); +#endif + /* + * Pretend that we did erase the background but we don't care, + * since we repaint the entire region anyhow + * This avoids some flickering when resizing. + */ + return TRUE; + case WM_PAINT: /* BeginPaint gives us an hdc that clips to the invalidated region */ |