From efdf51d3ddbb89f2fc1858c9f13ee6bb1a8b005a Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Wed, 20 Jan 2016 22:36:36 +0100 Subject: WAGE: Draw gameover dialog --- engines/wage/dialog.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'engines/wage/dialog.h') 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: -- cgit v1.2.3