diff options
author | Aaron Hagan <aaron.hagan@amd.com> | 2018-10-03 21:56:29 -0400 |
---|---|---|
committer | Tony Barbour <tony@lunarg.com> | 2018-10-04 10:01:26 -0600 |
commit | 500b9c39a71fdd1a20e42c6604d62d83dfabf47c (patch) | |
tree | a6d126a6406a1c40bfa873f69944f17484208f55 | |
parent | f3dacaa81bb1c350e9efdfa0819916fa2a8bdaf6 (diff) | |
download | Vulkan-Tools-500b9c39a71fdd1a20e42c6604d62d83dfabf47c.tar.gz Vulkan-Tools-500b9c39a71fdd1a20e42c6604d62d83dfabf47c.tar.bz2 Vulkan-Tools-500b9c39a71fdd1a20e42c6604d62d83dfabf47c.zip |
Ignore window erases
-rw-r--r-- | cube/cube.c | 2 | ||||
-rw-r--r-- | cube/cube.cpp | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/cube/cube.c b/cube/cube.c index fb239361..ef54fd34 100644 --- a/cube/cube.c +++ b/cube/cube.c @@ -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 diff --git a/cube/cube.cpp b/cube/cube.cpp index 5c68442c..5d0313ee 100644 --- a/cube/cube.cpp +++ b/cube/cube.cpp @@ -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 |