GRAPHICS: MACGUI: load win95scrollbar border as default when enable win95 mode

This commit is contained in:
ysj1173886760 2021-04-21 10:02:59 +08:00 committed by Eugene Sandulenko
parent df895359cc
commit c317ca1900
3 changed files with 24 additions and 0 deletions

View file

@ -514,6 +514,22 @@ void MacWindow::setBorderType(int borderType) {
}
}
void MacWindow::loadWin95Border(const Common::String &filename, uint32 flags) {
Common::SeekableReadStream *stream = _wm->getFile(filename);
if (stream) {
Graphics::BorderOffsets offsets;
offsets.top = 1;
offsets.bottom = 1;
offsets.left = 1;
offsets.right = 17;
offsets.lowerScrollHeight = 15;
offsets.upperScrollHeight = 17;
offsets.titlePos = 0;
loadBorder(*stream, flags, offsets);
delete stream;
}
}
void MacWindow::addDirtyRect(const Common::Rect &r) {
if (!r.isValidRect())
return;