mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-21 01:05:59 +00:00
GRAPHICS: MACGUI: fix the logic when calc the coordinate of scrollbar
This commit is contained in:
parent
ac9e312895
commit
9c9b553d7a
@ -353,7 +353,7 @@ void MacTextWindow::calcScrollBar() {
|
||||
maxScrollbar = getDimensions().height() - getBorderOffsets().upperScrollHeight - getBorderOffsets().lowerScrollHeight;
|
||||
|
||||
// if we enable the win95 mode but the text height is smaller than window height, then we don't draw the scrollbar
|
||||
if (_wm->_mode & kWMModeWin95 && displayHeight > _mactext->getTextHeight())
|
||||
if (_wm->_mode & kWMModeWin95 && displayHeight > _mactext->getTextHeight() && !_editable)
|
||||
return;
|
||||
|
||||
if (_editable)
|
||||
|
Loading…
x
Reference in New Issue
Block a user