[Scummvm-git-logs] scummvm master -> 9970ea6917251c1c8847976ecb633a94685a734d

bluegr noreply at scummvm.org
Mon Jul 1 15:40: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:
9970ea6917 BACKENDS: OPENGL: Support aspect ratio correction for Hercules games


Commit: 9970ea6917251c1c8847976ecb633a94685a734d
    https://github.com/scummvm/scummvm/commit/9970ea6917251c1c8847976ecb633a94685a734d
Author: Cameron Cawley (ccawley2011 at gmail.com)
Date: 2024-07-01T18:40:33+03:00

Commit Message:
BACKENDS: OPENGL: Support aspect ratio correction for Hercules games

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


diff --git a/backends/graphics/opengl/opengl-graphics.cpp b/backends/graphics/opengl/opengl-graphics.cpp
index 0829dc439f9..101d6519409 100644
--- a/backends/graphics/opengl/opengl-graphics.cpp
+++ b/backends/graphics/opengl/opengl-graphics.cpp
@@ -1617,9 +1617,10 @@ bool OpenGLGraphicsManager::gameNeedsAspectRatioCorrection() const {
 		const uint height = getHeight();
 
 		// In case we enable aspect ratio correction we force a 4/3 ratio.
-		// But just for 320x200 and 640x400 games, since other games do not need
-		// this.
-		return (width == 320 && height == 200) || (width == 640 && height == 400);
+		// But just for 320x200, 640x400 and Hercules games, since other
+		// games do not need this.
+		return (width == 320 && height == 200) || (width == 640 && height == 400) ||
+		       (width == 720 && height == 348) || (width == 720 && height == 350);
 	}
 
 	return false;




More information about the Scummvm-git-logs mailing list