From 42888dacac8839a1b0a16e993204487be5ef0671 Mon Sep 17 00:00:00 2001 From: Vincent Torri Date: Sun, 29 Jun 2014 17:01:01 +0200 Subject: [PATCH] ecore_win32: simplify logic To avoid flickering, we have to manage WM_ERASEBKGND. This message is sent because CS_HREDRAW and CS_VREDRAW are used when registering the window class. So just omit CS_HREDRAW and CS_VREDRAW. --- src/lib/ecore_win32/ecore_win32.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/lib/ecore_win32/ecore_win32.c b/src/lib/ecore_win32/ecore_win32.c index cd3d603d22..337bc5f384 100644 --- a/src/lib/ecore_win32/ecore_win32.c +++ b/src/lib/ecore_win32/ecore_win32.c @@ -444,8 +444,6 @@ _ecore_win32_window_procedure(HWND window, } return DefWindowProc(window, message, window_param, data_param); /* GDI notifications */ - case WM_ERASEBKGND: - return 1; case WM_PAINT: { RECT rect; @@ -612,7 +610,7 @@ ecore_win32_init() memset (&wc, 0, sizeof (WNDCLASSEX)); wc.cbSize = sizeof (WNDCLASSEX); - wc.style = CS_HREDRAW | CS_VREDRAW; + wc.style = 0; wc.lpfnWndProc = _ecore_win32_window_procedure; wc.cbClsExtra = 0; wc.cbWndExtra = 0;