diff options
author | Eugene Sandulenko | 2016-04-28 11:28:55 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-04-28 11:28:55 +0200 |
commit | 6998182b1fef719499ab8b19d415d1a24dd7d908 (patch) | |
tree | 8f0d5892bff4cd6d13b2eea103ffe1384d522c4c /engines/wage/dialog.cpp | |
parent | 367946f83b5688490bb40c54bb884df4dac3c11e (diff) | |
download | scummvm-rg350-6998182b1fef719499ab8b19d415d1a24dd7d908.tar.gz scummvm-rg350-6998182b1fef719499ab8b19d415d1a24dd7d908.tar.bz2 scummvm-rg350-6998182b1fef719499ab8b19d415d1a24dd7d908.zip |
WAGE: Moved pattern and palette to WM
Diffstat (limited to 'engines/wage/dialog.cpp')
-rw-r--r-- | engines/wage/dialog.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/wage/dialog.cpp b/engines/wage/dialog.cpp index 5495409934..981f42beaf 100644 --- a/engines/wage/dialog.cpp +++ b/engines/wage/dialog.cpp @@ -92,7 +92,7 @@ const Graphics::Font *Dialog::getDialogFont() { } void Dialog::paint() { - Design::drawFilledRect(&_gui->_screen, _bbox, kColorWhite, _gui->_patterns, kPatternSolid); + Design::drawFilledRect(&_gui->_screen, _bbox, kColorWhite, _gui->_wm.getPatterns(), kPatternSolid); _font->drawString(&_gui->_screen, _text, _bbox.left + 24, _bbox.top + 16, _bbox.width(), kColorBlack); static int boxOutline[] = { 1, 0, 0, 1, 1 }; @@ -114,7 +114,7 @@ void Dialog::paint() { Common::Rect bb(button->bounds.left + 5, button->bounds.top + 5, button->bounds.right - 5, button->bounds.bottom - 5); - Design::drawFilledRect(&_gui->_screen, bb, kColorBlack, _gui->_patterns, kPatternSolid); + Design::drawFilledRect(&_gui->_screen, bb, kColorBlack, _gui->_wm.getPatterns(), kPatternSolid); color = kColorWhite; } @@ -137,7 +137,7 @@ void Dialog::drawOutline(Common::Rect &bounds, int *spec, int speclen) { for (int i = 0; i < speclen; i++) if (spec[i] != 0) Design::drawRect(&_gui->_screen, bounds.left + i, bounds.top + i, bounds.right - i, bounds.bottom - i, - 1, kColorBlack, _gui->_patterns, kPatternSolid); + 1, kColorBlack, _gui->_wm.getPatterns(), kPatternSolid); } int Dialog::run() { |