2023-05-01 13:12:01 +00:00
|
|
|
diff --git a/SDL/SDLMain.cpp b/SDL/SDLMain.cpp
|
2023-07-04 14:37:34 +00:00
|
|
|
index 92537c9bd..a697ff157 100644
|
2023-05-01 13:12:01 +00:00
|
|
|
--- a/SDL/SDLMain.cpp
|
|
|
|
+++ b/SDL/SDLMain.cpp
|
2023-07-04 14:37:34 +00:00
|
|
|
@@ -603,11 +603,11 @@ void UpdateWindowState(SDL_Window *window) {
|
2022-09-11 18:55:59 +00:00
|
|
|
|
|
|
|
Uint32 window_flags = SDL_GetWindowFlags(window);
|
2023-05-01 13:12:01 +00:00
|
|
|
if (g_windowState.toggleFullScreenType == -1) {
|
2022-09-11 18:55:59 +00:00
|
|
|
- window_flags ^= SDL_WINDOW_FULLSCREEN_DESKTOP;
|
|
|
|
+ window_flags ^= SDL_WINDOW_FULLSCREEN;
|
2023-05-01 13:12:01 +00:00
|
|
|
} else if (g_windowState.toggleFullScreenType == 1) {
|
2022-09-11 18:55:59 +00:00
|
|
|
- window_flags |= SDL_WINDOW_FULLSCREEN_DESKTOP;
|
|
|
|
+ window_flags |= SDL_WINDOW_FULLSCREEN;
|
|
|
|
} else {
|
|
|
|
- window_flags &= ~SDL_WINDOW_FULLSCREEN_DESKTOP;
|
|
|
|
+ window_flags &= ~SDL_WINDOW_FULLSCREEN;
|
|
|
|
}
|
|
|
|
SDL_SetWindowFullscreen(window, window_flags);
|
|
|
|
}
|
2023-07-04 14:37:34 +00:00
|
|
|
@@ -718,7 +718,7 @@ int main(int argc, char *argv[]) {
|
2022-09-11 18:55:59 +00:00
|
|
|
Uint32 mode = 0;
|
|
|
|
for (int i = 1; i < argc; i++) {
|
2022-12-10 16:56:01 +00:00
|
|
|
if (!strcmp(argv[i],"--fullscreen")) {
|
2022-09-11 18:55:59 +00:00
|
|
|
- mode |= SDL_WINDOW_FULLSCREEN_DESKTOP;
|
|
|
|
+ mode |= SDL_WINDOW_FULLSCREEN;
|
2022-12-10 16:56:01 +00:00
|
|
|
g_Config.iForceFullScreen = 1;
|
|
|
|
} else if (set_xres == -2)
|
2022-09-11 18:55:59 +00:00
|
|
|
set_xres = parseInt(argv[i]);
|
2023-07-04 14:37:34 +00:00
|
|
|
@@ -791,14 +791,14 @@ int main(int argc, char *argv[]) {
|
2022-09-11 18:55:59 +00:00
|
|
|
|
|
|
|
// Force fullscreen if the resolution is too low to run windowed.
|
|
|
|
if (g_DesktopWidth < 480 * 2 && g_DesktopHeight < 272 * 2) {
|
|
|
|
- mode |= SDL_WINDOW_FULLSCREEN_DESKTOP;
|
|
|
|
+ mode |= SDL_WINDOW_FULLSCREEN;
|
|
|
|
}
|
|
|
|
|
|
|
|
// If we're on mobile, don't try for windowed either.
|
|
|
|
#if defined(MOBILE_DEVICE) && !PPSSPP_PLATFORM(SWITCH)
|
|
|
|
mode |= SDL_WINDOW_FULLSCREEN;
|
|
|
|
#elif defined(USING_FBDEV) || PPSSPP_PLATFORM(SWITCH)
|
|
|
|
- mode |= SDL_WINDOW_FULLSCREEN_DESKTOP;
|
|
|
|
+ mode |= SDL_WINDOW_FULLSCREEN;
|
|
|
|
#else
|
2023-07-04 14:37:34 +00:00
|
|
|
mode |= SDL_WINDOW_RESIZABLE | SDL_WINDOW_ALLOW_HIGHDPI;
|
2022-09-11 18:55:59 +00:00
|
|
|
#endif
|
2023-07-04 14:37:34 +00:00
|
|
|
@@ -868,7 +868,7 @@ int main(int argc, char *argv[]) {
|
2022-09-11 18:55:59 +00:00
|
|
|
|
|
|
|
// Use the setting from the config when initing the window.
|
|
|
|
if (g_Config.UseFullScreen())
|
|
|
|
- mode |= SDL_WINDOW_FULLSCREEN_DESKTOP;
|
|
|
|
+ mode |= SDL_WINDOW_FULLSCREEN;
|
|
|
|
|
|
|
|
int x = SDL_WINDOWPOS_UNDEFINED_DISPLAY(getDisplayNumber());
|
|
|
|
int y = SDL_WINDOWPOS_UNDEFINED;
|