forked from enlightenment/efl
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:
parent
45b518c072
commit
42888dacac
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue