GRAPHICS: MACGUI: add win95 mode for scrollbar

This commit is contained in:
ysj1173886760 2021-04-18 10:57:57 +08:00 committed by Eugene Sandulenko
parent 7c5c66a8c8
commit 855583e2e4

View File

@ -161,7 +161,9 @@ void MacWindowBorder::drawScrollBar(ManagedSurface *g, MacWindowManager *wm) {
Graphics::drawFilledRect(rr, wm->_colorWhite, wm->getDrawInvertPixel(), &pd);
// after drawing, we set the _scrollSize negative, to indicate no more drawing is needed
_scrollSize = -1;
// if win95 mode is enabled, then we keep on drawing the scrollbar
if (!(wm->_mode & kWMModeWin95))
_scrollSize = -1;
}
void MacWindowBorder::drawTitle(ManagedSurface *g, MacWindowManager *wm, int titleOffset) {