[Scummvm-git-logs] scummvm master -> 92abe49c5b07dc579efbc837e5b9585b9c2540bf

djsrv dservilla at gmail.com
Fri Aug 7 19:22:00 UTC 2020


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:
92abe49c5b GRAPHICS: MACGUI: Resize border surface


Commit: 92abe49c5b07dc579efbc837e5b9585b9c2540bf
    https://github.com/scummvm/scummvm/commit/92abe49c5b07dc579efbc837e5b9585b9c2540bf
Author: djsrv (dservilla at gmail.com)
Date: 2020-08-07T15:21:39-04:00

Commit Message:
GRAPHICS: MACGUI: Resize border surface

Changed paths:
    graphics/macgui/macwindow.cpp


diff --git a/graphics/macgui/macwindow.cpp b/graphics/macgui/macwindow.cpp
index fec3bc30c3..f8e8a248e1 100644
--- a/graphics/macgui/macwindow.cpp
+++ b/graphics/macgui/macwindow.cpp
@@ -452,11 +452,13 @@ void MacWindow::setBorder(Graphics::TransparentSurface *surface, bool active, Bo
 	else
 		_macBorder.addInactiveBorder(surface);
 
-	if (offsets.left + offsets.right + offsets.top + offsets.bottom > -4) { // Checking against default -1
+	if (active && offsets.left + offsets.right + offsets.top + offsets.bottom > -4) { // Checking against default -1
 		_macBorder.setOffsets(offsets);
+		updateOuterDims();
+		_borderSurface.free();
+		_borderSurface.create(_dims.width(), _dims.height(), PixelFormat::createFormatCLUT8());
 	}
 
-	updateOuterDims();
 	_borderIsDirty = true;
 	_wm->setFullRefresh(true);
 }




More information about the Scummvm-git-logs mailing list