[Scummvm-git-logs] scummvm master -> 8e8ec3900c90fc9e18571df84c5e9e754479052b

csnover csnover at users.noreply.github.com
Wed Nov 8 04:35:00 CET 2017


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:
8e8ec3900c SDL: Get correct default graphics mode ID when queried


Commit: 8e8ec3900c90fc9e18571df84c5e9e754479052b
    https://github.com/scummvm/scummvm/commit/8e8ec3900c90fc9e18571df84c5e9e754479052b
Author: Colin Snover (github.com at zetafleet.com)
Date: 2017-11-07T21:34:42-06:00

Commit Message:
SDL: Get correct default graphics mode ID when queried

Fixes Trac#10312.

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


diff --git a/backends/graphics/sdl/sdl-graphics.cpp b/backends/graphics/sdl/sdl-graphics.cpp
index 0e0a45a..f4aaa92 100644
--- a/backends/graphics/sdl/sdl-graphics.cpp
+++ b/backends/graphics/sdl/sdl-graphics.cpp
@@ -95,6 +95,10 @@ bool SdlGraphicsManager::defaultGraphicsModeConfig() const {
 }
 
 int SdlGraphicsManager::getGraphicsModeIdByName(const Common::String &name) const {
+	if (name == "normal" || name == "default") {
+		return getDefaultGraphicsMode();
+	}
+
 	const OSystem::GraphicsMode *mode = getSupportedGraphicsModes();
 	while (mode && mode->name != nullptr) {
 		if (name.equalsIgnoreCase(mode->name)) {





More information about the Scummvm-git-logs mailing list