Ignore window erases
authorAaron Hagan <aaron.hagan@amd.com>
Thu, 4 Oct 2018 01:56:29 +0000 (21:56 -0400)
committerTony Barbour <tony@lunarg.com>
Thu, 4 Oct 2018 16:01:26 +0000 (10:01 -0600)
cube/cube.c
cube/cube.cpp

index fb23936..ef54fd3 100644 (file)
@@ -2425,6 +2425,8 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) {
         case WM_GETMINMAXINFO:  // set window's minimum size
             ((MINMAXINFO *)lParam)->ptMinTrackSize = demo.minsize;
             return 0;
+        case WM_ERASEBKGND:
+            return 1;
         case WM_SIZE:
             // Resize the application to the new window size, except when
             // it was minimized. Vulkan doesn't support images or swapchains
index 5c68442..5d0313e 100644 (file)
@@ -2874,6 +2874,8 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) {
         case WM_GETMINMAXINFO:  // set window's minimum size
             ((MINMAXINFO *)lParam)->ptMinTrackSize = demo.minsize;
             return 0;
+        case WM_ERASEBKGND:
+            return 1;
         case WM_SIZE:
             // Resize the application to the new window size, except when
             // it was minimized. Vulkan doesn't support images or swapchains