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;
if (_active)
flags |= kWindowBorderActive;
if (!_title.empty())
if (!_title.empty() && _borderType != 0x02 && _borderType != 0x03 && _borderType != 0x0a && _borderType != 0x0b)
flags |= kWindowBorderTitle;
if (_hasScrollBar)
flags |= kWindowBorderScrollbar;