summaryrefslogtreecommitdiff
path: root/src/lib/ecore_win32
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2014-06-29 17:01:01 +0200
committerCedric BAIL <c.bail@partner.samsung.com>2014-06-29 19:56:50 +0200
commit42888dacac8839a1b0a16e993204487be5ef0671 (patch)
tree09b856d15d51c6b2dc0117fe6c7f15605c486f49 /src/lib/ecore_win32
parent45b518c07234016ea373efa3d27cee1f8bcc3d7d (diff)
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.
Diffstat (limited to 'src/lib/ecore_win32')
-rw-r--r--src/lib/ecore_win32/ecore_win32.c4
1 files changed, 1 insertions, 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,
444 } 444 }
445 return DefWindowProc(window, message, window_param, data_param); 445 return DefWindowProc(window, message, window_param, data_param);
446 /* GDI notifications */ 446 /* GDI notifications */
447 case WM_ERASEBKGND:
448 return 1;
449 case WM_PAINT: 447 case WM_PAINT:
450 { 448 {
451 RECT rect; 449 RECT rect;
@@ -612,7 +610,7 @@ ecore_win32_init()
612 610
613 memset (&wc, 0, sizeof (WNDCLASSEX)); 611 memset (&wc, 0, sizeof (WNDCLASSEX));
614 wc.cbSize = sizeof (WNDCLASSEX); 612 wc.cbSize = sizeof (WNDCLASSEX);
615 wc.style = CS_HREDRAW | CS_VREDRAW; 613 wc.style = 0;
616 wc.lpfnWndProc = _ecore_win32_window_procedure; 614 wc.lpfnWndProc = _ecore_win32_window_procedure;
617 wc.cbClsExtra = 0; 615 wc.cbClsExtra = 0;
618 wc.cbWndExtra = 0; 616 wc.cbWndExtra = 0;