MACGUI: Fix getBorderFlags for titleless window types

Fixes rendering of game viewport in Zeddas: Servant of Sheol.
This commit is contained in:
Scott Percival 2024-10-27 01:14:33 +08:00 committed by Eugene Sandulenko
parent 183e257235
commit a205480946

View File

@ -202,7 +202,7 @@ uint32 MacWindow::getBorderFlags() const {
uint32 flags = 0; uint32 flags = 0;
if (_active) if (_active)
flags |= kWindowBorderActive; flags |= kWindowBorderActive;
if (!_title.empty()) if (!_title.empty() && _borderType != 0x02 && _borderType != 0x03 && _borderType != 0x0a && _borderType != 0x0b)
flags |= kWindowBorderTitle; flags |= kWindowBorderTitle;
if (_hasScrollBar) if (_hasScrollBar)
flags |= kWindowBorderScrollbar; flags |= kWindowBorderScrollbar;