GRAPHICS: MACGUI: Resize border surface

This commit is contained in:
djsrv 2020-08-07 15:21:39 -04:00
parent 195f9ede7b
commit 92abe49c5b

View File

@ -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);
}