[Scummvm-git-logs] scummvm master -> 711328c104b0a72baa5537b3d4e0eb36d0411cbc

eriktorbjorn noreply at scummvm.org
Wed Jul 9 04:50:41 UTC 2025


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .

Summary:
711328c104 SCUMM: Fix Mac pause banner drawing in The Dig (bug #15597)


Commit: 711328c104b0a72baa5537b3d4e0eb36d0411cbc
    https://github.com/scummvm/scummvm/commit/711328c104b0a72baa5537b3d4e0eb36d0411cbc
Author: Torbjörn Andersson (eriktorbjorn at users.sourceforge.net)
Date: 2025-07-09T06:47:55+02:00

Commit Message:
SCUMM: Fix Mac pause banner drawing in The Dig (bug #15597)

Though I have to say that drawBox() seems like a strange way to
implement drawing a line from (x1,y1) to (x2,y2). But if that's all that
FM Towns v5 and later Macintosh versions use... I don't have any of the
relevant FM Towns games to test with myself, but at least it's
consistent with drawPixel().

Changed paths:
    engines/scumm/gfx.cpp


diff --git a/engines/scumm/gfx.cpp b/engines/scumm/gfx.cpp
index 44dcdf22f9b..fb78f408fea 100644
--- a/engines/scumm/gfx.cpp
+++ b/engines/scumm/gfx.cpp
@@ -1635,7 +1635,7 @@ 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) ||
 		(_game.platform == Common::kPlatformMacintosh && _game.version > 3)) {
-		drawBox(x1, y1, x2, y2, color);
+		drawBox(x1, _screenTop + y1, x2, _screenTop + y2, color);
 		return;
 	}
 




More information about the Scummvm-git-logs mailing list