|
@@ -1529,9 +1529,13 @@ bool SDL_SetDisplayModeForDisplay(SDL_VideoDisplay *display, SDL_DisplayMode *mo
|
|
|
mode = &display->desktop_mode;
|
|
mode = &display->desktop_mode;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ // On RISC OS, it's necessary to switch from the desktop to single-tasking
|
|
|
|
|
+ // fullscreen so that it can handle switching back to the desktop correctly.
|
|
|
|
|
+#ifndef SDL_PLATFORM_RISCOS
|
|
|
if (mode == display->current_mode) {
|
|
if (mode == display->current_mode) {
|
|
|
return true;
|
|
return true;
|
|
|
}
|
|
}
|
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
// Actually change the display mode
|
|
// Actually change the display mode
|
|
|
if (_this->SetDisplayMode) {
|
|
if (_this->SetDisplayMode) {
|