From 500b9c39a71fdd1a20e42c6604d62d83dfabf47c Mon Sep 17 00:00:00 2001 From: Aaron Hagan Date: Wed, 3 Oct 2018 21:56:29 -0400 Subject: Ignore window erases --- cube/cube.c | 2 ++ cube/cube.cpp | 2 ++ 2 files changed, 4 insertions(+) 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 -- cgit v1.2.3