[Scummvm-git-logs] scummvm master -> 55d7f16dc1b184e26c4651b6f1cd7ab71143e771

athrxx noreply at scummvm.org
Tue Apr 30 23:54:41 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:
55d7f16dc1 SCUMM: (v5/FM-Towns) - fix regression


Commit: 55d7f16dc1b184e26c4651b6f1cd7ab71143e771
    https://github.com/scummvm/scummvm/commit/55d7f16dc1b184e26c4651b6f1cd7ab71143e771
Author: athrxx (athrxx at scummvm.org)
Date: 2024-05-01T01:54:14+02:00

Commit Message:
SCUMM: (v5/FM-Towns) - fix regression

Changed paths:
    engines/scumm/gfx.cpp


diff --git a/engines/scumm/gfx.cpp b/engines/scumm/gfx.cpp
index 9a080806817..649a7c495d0 100644
--- a/engines/scumm/gfx.cpp
+++ b/engines/scumm/gfx.cpp
@@ -1601,6 +1601,11 @@ void ScummEngine::drawBox(int x, int y, int x2, int y2, int color) {
 }
 
 void ScummEngine::drawLine(int x1, int y1, int x2, int y2, int color) {
+	if (_game.platform == Common::kPlatformFMTowns && _game.version == 5) {
+		drawBox(x1, y1, x2, y2, color);
+		return;
+	}
+
 	int effColor, black, white;
 	int effX1, effY1;
 	int width, height, widthAccumulator, heightAccumulator, horizontalStrips, originalHeight;




More information about the Scummvm-git-logs mailing list