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.
This commit is contained in:
Vincent Torri 2014-06-29 17:01:01 +02:00 committed by Cedric BAIL
parent 45b518c072
commit 42888dacac
1 changed files with 1 additions and 3 deletions

View File

@ -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;