mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-06 18:27:26 +00:00
GRAPHICS: MACGUI: Resize border surface
This commit is contained in:
parent
195f9ede7b
commit
92abe49c5b
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user