[Scummvm-git-logs] scummvm master -> 904235ca4d5a9d32bc21948181feac184e04dd42

eriktorbjorn noreply at scummvm.org
Mon Jan 6 08:57:40 UTC 2025


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:
904235ca4d GRAPHICS: Fix SurfacePrimitives::drawHLine()


Commit: 904235ca4d5a9d32bc21948181feac184e04dd42
    https://github.com/scummvm/scummvm/commit/904235ca4d5a9d32bc21948181feac184e04dd42
Author: Torbjörn Andersson (eriktorbjorn at users.sourceforge.net)
Date: 2025-01-06T09:56:25+01:00

Commit Message:
GRAPHICS: Fix SurfacePrimitives::drawHLine()

It was using the wrong parameter order to hLine(). This caused a
regression in drawing Macintosh menu bars (rounded rectangles), and
quite possibly other things as well.

Changed paths:
    graphics/surface.cpp


diff --git a/graphics/surface.cpp b/graphics/surface.cpp
index 1d6a8228d25..ce4e01ad22f 100644
--- a/graphics/surface.cpp
+++ b/graphics/surface.cpp
@@ -46,7 +46,7 @@ public:
 
         void drawHLine(int x1, int x2, int y, uint32 color, void *data) override {
 		Surface *s = (Surface *)data;
-		s->hLine(x1, x2, y, color);
+		s->hLine(x1, y, x2, color);
 	}
 
         void drawVLine(int x, int y1, int y2, uint32 color, void *data) override {




More information about the Scummvm-git-logs mailing list