[Scummvm-git-logs] scummvm master -> f4c9ddf78ab1e3940b086a985058988a4231407b

lephilousophe noreply at scummvm.org
Sun Feb 23 11:24:11 UTC 2025


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
f4c9ddf78a BACKENDS: SDL: Now fix build for older SDL...


Commit: f4c9ddf78ab1e3940b086a985058988a4231407b
    https://github.com/scummvm/scummvm/commit/f4c9ddf78ab1e3940b086a985058988a4231407b
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2025-02-23T12:23:54+01:00

Commit Message:
BACKENDS: SDL: Now fix build for older SDL...

Changed paths:
    backends/platform/sdl/sdl-window.cpp


diff --git a/backends/platform/sdl/sdl-window.cpp b/backends/platform/sdl/sdl-window.cpp
index ab8da2c4a23..73baa583a81 100644
--- a/backends/platform/sdl/sdl-window.cpp
+++ b/backends/platform/sdl/sdl-window.cpp
@@ -163,13 +163,15 @@ void SdlWindow::setWindowCaption(const Common::String &caption) {
 }
 
 void SdlWindow::setResizable(bool resizable) {
-	if (_window) {
 #if SDL_VERSION_ATLEAST(3, 0, 0)
+	if (_window) {
 		SDL_SetWindowResizable(_window, resizable);
+	}
 #elif SDL_VERSION_ATLEAST(2, 0, 5)
+	if (_window) {
 		SDL_SetWindowResizable(_window, resizable ? SDL_TRUE : SDL_FALSE);
-#endif
 	}
+#endif
 	_resizable = resizable;
 }
 




More information about the Scummvm-git-logs mailing list