[Scummvm-git-logs] scummvm master -> 54b9908323b0274871c328c0dcea0852639a7c6c

elasota noreply at scummvm.org
Sat Feb 24 02:27:37 UTC 2024


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:
54b9908323 MTROPOLIS: Fix Obsidian widescreen mod regression


Commit: 54b9908323b0274871c328c0dcea0852639a7c6c
    https://github.com/scummvm/scummvm/commit/54b9908323b0274871c328c0dcea0852639a7c6c
Author: elasota (1137273+elasota at users.noreply.github.com)
Date: 2024-02-23T21:27:23-05:00

Commit Message:
MTROPOLIS: Fix Obsidian widescreen mod regression

Changed paths:
    engines/mtropolis/mtropolis.cpp


diff --git a/engines/mtropolis/mtropolis.cpp b/engines/mtropolis/mtropolis.cpp
index 4450744e741..e7c30a040ed 100644
--- a/engines/mtropolis/mtropolis.cpp
+++ b/engines/mtropolis/mtropolis.cpp
@@ -288,6 +288,9 @@ Common::Error MTropolisEngine::run() {
 	if (selectedMode == enhancedColorDepthMode)
 		fakeMode = preferredColorDepthMode;
 
+	if (_gameDescription->gameID == GID_OBSIDIAN && ConfMan.getBool("mtropolis_mod_obsidian_widescreen"))
+		preferredHeight = 360;
+
 	// Set active mode
 	_runtime->switchDisplayMode(selectedMode, fakeMode);
 	_runtime->setDisplayResolution(preferredWidth, preferredHeight);
@@ -322,7 +325,6 @@ Common::Error MTropolisEngine::run() {
 		if (ConfMan.getBool("mtropolis_mod_obsidian_widescreen")) {
 			_runtime->getHacks().reportDisplaySize = Common::Point(640, 480);
 
-			preferredHeight = 360;
 			HackSuites::addObsidianImprovedWidescreen(*_gameDescription, _runtime->getHacks());
 		}
 	} else if (_gameDescription->gameID == GID_MTI) {




More information about the Scummvm-git-logs mailing list