re-draw the game screen if its paused, and the system returns from hibernation

This commit is contained in:
dinkc64 2014-06-25 18:04:35 +00:00
parent e2500cda1b
commit 342f6114aa
1 changed files with 9 additions and 8 deletions

View File

@ -565,11 +565,20 @@ static void OnActivateApp(HWND hwnd, BOOL fActivate, DWORD /* dwThreadId */)
}
}
static void PausedRedraw(void)
{
if (bVidOkay && (bRunPause || !bDrvOkay)) { // Show the message even if paused. - dink
VidRedraw();
VidPaint(0);
}
}
static void OnPaint(HWND hWnd)
{
if (hWnd == hScrnWnd)
{
VidPaint(1);
PausedRedraw(); // redraw game screen if paused and returning from hibernation - dink
// draw menu
if (!nVidFullscreen) {
@ -741,14 +750,6 @@ int BurnerLoadDriver(TCHAR *szDriverName)
return 0;
}
static void PausedRedraw(void)
{
if (bVidOkay && (bRunPause || !bDrvOkay)) { // Show the message even if paused. - dink
VidRedraw();
VidPaint(0);
}
}
static void OnCommand(HWND /*hDlg*/, int id, HWND /*hwndCtl*/, UINT codeNotify)
{
//if(id >= ID_MDI_START_CHILD) {