[Scummvm-git-logs] scummvm master -> 00f2abf93bd4c4bf46186be57d1b3f01d5121843

sev- noreply at scummvm.org
Tue Mar 11 14:36:56 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:
00f2abf93b GRAPHICS: MACGUI: Fix color palette used in nine-patch bitmap for disabling border


Commit: 00f2abf93bd4c4bf46186be57d1b3f01d5121843
    https://github.com/scummvm/scummvm/commit/00f2abf93bd4c4bf46186be57d1b3f01d5121843
Author: cmd05 (splendid.snippet670 at slmail.me)
Date: 2025-03-11T15:36:51+01:00

Commit Message:
GRAPHICS: MACGUI: Fix color palette used in nine-patch bitmap for disabling border

Changed paths:
    graphics/macgui/macwindowborder.cpp


diff --git a/graphics/macgui/macwindowborder.cpp b/graphics/macgui/macwindowborder.cpp
index 0b2e23cdb85..07a772262ab 100644
--- a/graphics/macgui/macwindowborder.cpp
+++ b/graphics/macgui/macwindowborder.cpp
@@ -82,12 +82,13 @@ bool MacWindowBorder::hasBorder(uint32 flags) {
 void MacWindowBorder::disableBorder() {
 	const byte palette[] = {
 		255, 0,   255,
-		0,   0,   0
+		0,   0,   0,
+		255, 255, 255,
 	};
 
 	Graphics::ManagedSurface *noborder = new Graphics::ManagedSurface();
 	noborder->create(3, 3, Graphics::PixelFormat::createFormatCLUT8());
-	noborder->setPalette(palette, 0, 2);
+	noborder->setPalette(palette, 0, 3);
 	noborder->setTransparentColor(0);
 
 	for (int y = 0; y < 3; y++)




More information about the Scummvm-git-logs mailing list