Fix some window title issues, etc.

This commit is contained in:
Henrik Rydgard committed 2013-08-20 17:21:25 +02:00
1 parent e5c6cea6f1
commit 87e51a5c04
6 files changed
+10 -19

No files matched your search

+1 -14
View File
@@ -333,7 +333,6 @@ namespace MainWindow
SetTimer(hwndMain, TIMER_CURSORUPDATE, CURSORUPDATE_INTERVAL_MS, 0);
Update();
SetPlaying(0);
if(g_Config.bFullScreenOnLaunch)
_ViewFullScreen(hwndMain);
@@ -694,7 +693,6 @@ namespace MainWindow
Core_EnableStepping(false);
}
NativeMessageReceived("stop", "");
SetPlaying(0);
Update();
break;
@@ -1156,8 +1154,7 @@ namespace MainWindow
// Ugly, need to wait for the stop message to process in the EmuThread.
Sleep(20);
MainWindow::SetPlaying(filename);
MainWindow::Update();
Update();
NativeMessageReceived("boot", filename);
}
@@ -1497,16 +1494,6 @@ namespace MainWindow
UpdateScreenScale();
}
void SetPlaying(const char *text) {
char temp[256];
if (text == 0)
snprintf(temp, 256, "PPSSPP %s", PPSSPP_GIT_VERSION);
else
snprintf(temp, 256, "%s - PPSSPP %s", text, PPSSPP_GIT_VERSION);
temp[255] = '\0';
SetWindowText(hwndMain, temp);
}
void SaveStateActionFinished(bool result, void *userdata) {
PostMessage(hwndMain, WM_USER_SAVESTATE_FINISH, 0, 0);
}