aboutsummaryrefslogtreecommitdiffstats
path: root/Samples/CommonSrc/Platform/Win32_Platform.h
diff options
context:
space:
mode:
authorBrad Davis <[email protected]>2014-05-23 01:49:32 -0700
committerBrad Davis <[email protected]>2014-05-23 01:49:32 -0700
commit46acc0e194ff3c1f120199eeca8324b4502118e9 (patch)
treeb1030198d3ee4698445d1fc5161cebe4158e45d1 /Samples/CommonSrc/Platform/Win32_Platform.h
parent07d0f4d0bbf3477ac6a9584f726e8ec6ab285707 (diff)
Updating to 0.3.2 (windows version)
Diffstat (limited to 'Samples/CommonSrc/Platform/Win32_Platform.h')
-rw-r--r--Samples/CommonSrc/Platform/Win32_Platform.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/Samples/CommonSrc/Platform/Win32_Platform.h b/Samples/CommonSrc/Platform/Win32_Platform.h
index 23f0b70..a450cb4 100644
--- a/Samples/CommonSrc/Platform/Win32_Platform.h
+++ b/Samples/CommonSrc/Platform/Win32_Platform.h
@@ -61,7 +61,12 @@ public:
bool SetupWindow(int w, int h);
void DestroyWindow();
void ShowWindow(bool visible);
- void Exit(int exitcode) { Quit = 1; ExitCode = exitcode; }
+ void Exit(int exitcode)
+ {
+ for (MSG msg; PeekMessage(&msg, NULL, 0, 0, PM_REMOVE); )
+ ;
+ Quit = 1; ExitCode = exitcode;
+ }
RenderDevice* SetupGraphics(const SetupGraphicsDeviceSet& setupGraphicsDesc,
const char* type,