[Scummvm-git-logs] scummvm master -> ab044eebcb21642e6444c6cb2ed00b20cd68e609
digitall
noreply at scummvm.org
Tue Jan 18 13:26:36 UTC 2022
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:
ab044eebcb HYPNO: Fix Logic Errors in Screen Mode Change Code
Commit: ab044eebcb21642e6444c6cb2ed00b20cd68e609
https://github.com/scummvm/scummvm/commit/ab044eebcb21642e6444c6cb2ed00b20cd68e609
Author: D G Turner (digitall at scummvm.org)
Date: 2022-01-18T13:26:02Z
Commit Message:
HYPNO: Fix Logic Errors in Screen Mode Change Code
Changed paths:
engines/hypno/hypno.cpp
diff --git a/engines/hypno/hypno.cpp b/engines/hypno/hypno.cpp
index c4633eafdda..1f6db466811 100644
--- a/engines/hypno/hypno.cpp
+++ b/engines/hypno/hypno.cpp
@@ -355,7 +355,7 @@ Frames HypnoEngine::decodeFrames(const Common::String &name) {
void HypnoEngine::changeScreenMode(const Common::String &mode) {
debugC(1, kHypnoDebugMedia, "%s(%s)", __FUNCTION__, mode.c_str());
if (mode == "640x480") {
- if (_screenH == 640 && _screenH == 480)
+ if (_screenW == 640 && _screenH == 480)
return;
_screenW = 640;
@@ -372,7 +372,7 @@ void HypnoEngine::changeScreenMode(const Common::String &mode) {
_compositeSurface->setTransparentColor(_transparentColor);
} else if (mode == "320x200") {
- if (_screenH == 320 && _screenH == 200)
+ if (_screenW == 320 && _screenH == 200)
return;
_screenW = 320;
More information about the Scummvm-git-logs
mailing list