aboutsummaryrefslogtreecommitdiff
path: root/engines/wage/dialog.h
diff options
context:
space:
mode:
authorEugene Sandulenko2016-01-20 22:36:36 +0100
committerEugene Sandulenko2016-02-14 17:12:49 +0100
commitefdf51d3ddbb89f2fc1858c9f13ee6bb1a8b005a (patch)
treed8000388efb84c8af4dbed6a6f6d38123e53a3df /engines/wage/dialog.h
parent750e44219f246c404b44170001287b1ffb64ec89 (diff)
downloadscummvm-rg350-efdf51d3ddbb89f2fc1858c9f13ee6bb1a8b005a.tar.gz
scummvm-rg350-efdf51d3ddbb89f2fc1858c9f13ee6bb1a8b005a.tar.bz2
scummvm-rg350-efdf51d3ddbb89f2fc1858c9f13ee6bb1a8b005a.zip
WAGE: Draw gameover dialog
Diffstat (limited to 'engines/wage/dialog.h')
-rw-r--r--engines/wage/dialog.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/wage/dialog.h b/engines/wage/dialog.h
index 7983417b47..6e972e252b 100644
--- a/engines/wage/dialog.h
+++ b/engines/wage/dialog.h
@@ -54,12 +54,12 @@ struct DialogButton {
Common::String text;
Common::Rect bounds;
- DialogButton(const char *t, int x1, int y1, int x2, int y2) {
+ DialogButton(const char *t, int x1, int y1, int w, int h) {
text = t;
bounds.left = x1;
bounds.top = y1;
- bounds.right = x2;
- bounds.bottom = y2;
+ bounds.right = x1 + w - 1;
+ bounds.bottom = y1 + h - 1;
}
};
@@ -80,8 +80,8 @@ private:
const Graphics::Font *_font;
DialogButtonArray *_buttons;
- DialogButton *_pressedButton;
- DialogButton *_defaultButton;
+ int _pressedButton;
+ int _defaultButton;
bool _mouseOverPressedButton;
private: