diff options
author | Max Horn | 2005-05-11 19:30:30 +0000 |
---|---|---|
committer | Max Horn | 2005-05-11 19:30:30 +0000 |
commit | 79241d323fec0299e55bbfb420d0b4cdb4a70965 (patch) | |
tree | 59c947e9610c9ed16f2f0d2d8777f80cf5d880c5 /gui/dialog.cpp | |
parent | 25404478438b60cf1bb121a79c5e083c26dc8784 (diff) | |
download | scummvm-rg350-79241d323fec0299e55bbfb420d0b4cdb4a70965.tar.gz scummvm-rg350-79241d323fec0299e55bbfb420d0b4cdb4a70965.tar.bz2 scummvm-rg350-79241d323fec0299e55bbfb420d0b4cdb4a70965.zip |
Start work on support for 'big' widgets
svn-id: r18060
Diffstat (limited to 'gui/dialog.cpp')
-rw-r--r-- | gui/dialog.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gui/dialog.cpp b/gui/dialog.cpp index 42433ea659..e67c82e023 100644 --- a/gui/dialog.cpp +++ b/gui/dialog.cpp @@ -288,8 +288,14 @@ Widget *Dialog::findWidget(int x, int y) { return Widget::findWidgetInChain(_firstWidget, x, y); } -ButtonWidget *Dialog::addButton(int x, int y, const Common::String &label, uint32 cmd, char hotkey) { - return new ButtonWidget(this, x, y, kButtonWidth, 16, label, cmd, hotkey); +ButtonWidget *Dialog::addButton(int x, int y, const Common::String &label, uint32 cmd, char hotkey, WidgetSize ws) { + int w = kButtonWidth; + int h = kButtonHeight; + if (ws == kBigWidgetSize) { + w = kBigButtonWidth; + h = kBigButtonHeight; + } + return new ButtonWidget(this, x, y, w, h, label, cmd, hotkey, ws); } |