mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Make --windowed available on all platform and make sure to trigger resize
This commit is contained in:
parent
dfb5cd37d9
commit
cd42f8b3a6
2 changed files with 7 additions and 4 deletions
|
@ -595,8 +595,14 @@ void NativeInit(int argc, const char *argv[], const char *savegame_dir, const ch
|
||||||
#endif
|
#endif
|
||||||
if (!strncmp(argv[i], "--pause-menu-exit", strlen("--pause-menu-exit")))
|
if (!strncmp(argv[i], "--pause-menu-exit", strlen("--pause-menu-exit")))
|
||||||
g_Config.bPauseMenuExitsEmulator = true;
|
g_Config.bPauseMenuExitsEmulator = true;
|
||||||
if (!strcmp(argv[i], "--fullscreen"))
|
if (!strcmp(argv[i], "--fullscreen")) {
|
||||||
g_Config.bFullScreen = true;
|
g_Config.bFullScreen = true;
|
||||||
|
System_SendMessage("toggle_fullscreen", "1");
|
||||||
|
}
|
||||||
|
if (!strcmp(argv[i], "--windowed")) {
|
||||||
|
g_Config.bFullScreen = false;
|
||||||
|
System_SendMessage("toggle_fullscreen", "0");
|
||||||
|
}
|
||||||
if (!strcmp(argv[i], "--touchscreentest"))
|
if (!strcmp(argv[i], "--touchscreentest"))
|
||||||
gotoTouchScreenTest = true;
|
gotoTouchScreenTest = true;
|
||||||
if (!strcmp(argv[i], "--gamesettings"))
|
if (!strcmp(argv[i], "--gamesettings"))
|
||||||
|
|
|
@ -564,9 +564,6 @@ int WINAPI WinMain(HINSTANCE _hInstance, HINSTANCE hPrevInstance, LPSTR szCmdLin
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (wideArgs[i] == L"--windowed")
|
|
||||||
g_Config.bFullScreen = false;
|
|
||||||
|
|
||||||
if (wideArgs[i].find(gpuBackend) != std::wstring::npos && wideArgs[i].size() > gpuBackend.size()) {
|
if (wideArgs[i].find(gpuBackend) != std::wstring::npos && wideArgs[i].size() > gpuBackend.size()) {
|
||||||
const std::wstring restOfOption = wideArgs[i].substr(gpuBackend.size());
|
const std::wstring restOfOption = wideArgs[i].substr(gpuBackend.size());
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue