aboutsummaryrefslogtreecommitdiff
path: root/engines/wage/dialog.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2016-04-28 11:28:55 +0200
committerEugene Sandulenko2016-04-28 11:28:55 +0200
commit6998182b1fef719499ab8b19d415d1a24dd7d908 (patch)
tree8f0d5892bff4cd6d13b2eea103ffe1384d522c4c /engines/wage/dialog.cpp
parent367946f83b5688490bb40c54bb884df4dac3c11e (diff)
downloadscummvm-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.cpp6
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() {