[Scummvm-git-logs] scummvm branch-2-3 -> 39ba63e5e30b37d7a9fa0fac9a078569781faefe

criezy criezy at scummvm.org
Wed Sep 8 20:34:01 UTC 2021


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:
39ba63e5e3 SDL: Fix starting high resolution game with default scale factor


Commit: 39ba63e5e30b37d7a9fa0fac9a078569781faefe
    https://github.com/scummvm/scummvm/commit/39ba63e5e30b37d7a9fa0fac9a078569781faefe
Author: Thierry Crozat (criezy at scummvm.org)
Date: 2021-09-08T21:33:37+01:00

Commit Message:
SDL: Fix starting high resolution game with default scale factor

Changed paths:
    backends/graphics/surfacesdl/surfacesdl-graphics.cpp


diff --git a/backends/graphics/surfacesdl/surfacesdl-graphics.cpp b/backends/graphics/surfacesdl/surfacesdl-graphics.cpp
index 36f0aa591c..df5750ec3c 100644
--- a/backends/graphics/surfacesdl/surfacesdl-graphics.cpp
+++ b/backends/graphics/surfacesdl/surfacesdl-graphics.cpp
@@ -716,7 +716,9 @@ void SurfaceSdlGraphicsManager::initSize(uint w, uint h, const Graphics::PixelFo
 
 	if ((int)w != _videoMode.screenWidth || (int)h != _videoMode.screenHeight) {
 		const bool useDefault = defaultGraphicsModeConfig();
-		uint scaleFactor = ConfMan.getInt("scale_factor");
+		int scaleFactor = ConfMan.getInt("scale_factor");
+		if (scaleFactor == -1)
+			scaleFactor = getDefaultScaleFactor();
 		int mode = _videoMode.scalerIndex;
 		if (useDefault && w > 320) {
 			// The default scaler is assumed to be for low




More information about the Scummvm-git-logs mailing list