|
@@ -252,6 +252,11 @@ LRESULT CALLBACK __WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
|
|
|
|
|
|
|
switch (msg)
|
|
switch (msg)
|
|
|
{
|
|
{
|
|
|
|
|
+ case WM_PAINT:
|
|
|
|
|
+ gameplay::Game::getInstance()->frame();
|
|
|
|
|
+ SwapBuffers(__hdc);
|
|
|
|
|
+ return 0;
|
|
|
|
|
+
|
|
|
case WM_CLOSE:
|
|
case WM_CLOSE:
|
|
|
DestroyWindow(__hwnd);
|
|
DestroyWindow(__hwnd);
|
|
|
return 0;
|
|
return 0;
|
|
@@ -517,12 +522,6 @@ int Platform::enterMessagePump()
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (_game->getState() != Game::PAUSED)
|
|
|
|
|
- {
|
|
|
|
|
- _game->frame();
|
|
|
|
|
- SwapBuffers(__hdc);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
// If we are done, then exit.
|
|
// If we are done, then exit.
|
|
|
if (_game->getState() == Game::UNINITIALIZED)
|
|
if (_game->getState() == Game::UNINITIALIZED)
|
|
|
break;
|
|
break;
|