GRAPHICS: MACGUI: load win95scrollbar border as default when enable win95 mode
This commit is contained in:
parent
df895359cc
commit
c317ca1900
3 changed files with 24 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue