WAGE: Reenabled 9-patch border drawing and added default border images

This commit is contained in:
Eugene Sandulenko 2019-09-28 01:28:44 +02:00
parent 1dd056b689
commit 6c36f4b550
3 changed files with 3 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

View File

@ -309,8 +309,8 @@ void Gui::executeMenuCommand(int action, Common::String &text) {
void Gui::loadBorders() {
// Do not load borders for now
//loadBorder(_sceneWindow, "border_inac.bmp", false);
//loadBorder(_sceneWindow, "border_act.bmp", true);
loadBorder(_sceneWindow, "wage_border_inact.bmp", false);
loadBorder(_sceneWindow, "wage_border_act.bmp", true);
}
void Gui::loadBorder(Graphics::MacWindow *target, Common::String filename, bool active) {
@ -325,7 +325,7 @@ void Gui::loadBorder(Graphics::MacWindow *target, Common::String filename, bool
Common::SeekableReadStream *stream = borderfile.readStream(borderfile.size());
if (stream) {
target->loadBorder(*stream, active, 10, 10, 1, 1);
target->loadBorder(*stream, active, 18, 18, 18, 18);
borderfile.close();