Rework the internal API for applying the fullscreen state. Fixes.

This commit is contained in:
Henrik Rydgård committed 2026-02-02 11:45:46 +01:00
1 parent d331af58ab
commit ad4da764df
15 files changed
+85 -102

No files matched your search

-2
View File
@@ -582,7 +582,6 @@ void NativeInit(int argc, const char *argv[], const char *savegame_dir, const ch
if (!strcmp(argv[i], "--fullscreen")) {
g_Config.DoNotSaveSetting(&g_Config.bFullScreen);
g_Config.bFullScreen = true;
System_ToggleFullscreenState("1");
}
if (!strncmp(argv[i], "--root=", strlen("--root=")) && strlen(argv[i]) > strlen("--root=")) {
g_Config.mountRoot = Path(argv[i] + strlen("--root="));
@@ -590,7 +589,6 @@ void NativeInit(int argc, const char *argv[], const char *savegame_dir, const ch
if (!strcmp(argv[i], "--windowed")) {
g_Config.DoNotSaveSetting(&g_Config.bFullScreen);
g_Config.bFullScreen = false;
System_ToggleFullscreenState("0");
}
if (!strcmp(argv[i], "--touchscreentest"))
gotoTouchScreenTest = true;