diff options
author | Max Horn | 2008-11-12 12:53:53 +0000 |
---|---|---|
committer | Max Horn | 2008-11-12 12:53:53 +0000 |
commit | fa942c42cc780f34b96fc308a2b7fdde52088e42 (patch) | |
tree | 9da5c5d5e2b6d057a7f713f281ff1d461aeaa004 /gui/dialog.cpp | |
parent | 201c26fcd0ad71568a3581a5520c094d93ec6d06 (diff) | |
download | scummvm-rg350-fa942c42cc780f34b96fc308a2b7fdde52088e42.tar.gz scummvm-rg350-fa942c42cc780f34b96fc308a2b7fdde52088e42.tar.bz2 scummvm-rg350-fa942c42cc780f34b96fc308a2b7fdde52088e42.zip |
GUI: Got rid of most 'built-in' variables
svn-id: r35018
Diffstat (limited to 'gui/dialog.cpp')
-rw-r--r-- | gui/dialog.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/gui/dialog.cpp b/gui/dialog.cpp index b11bf5bf26..ce3e5d609c 100644 --- a/gui/dialog.cpp +++ b/gui/dialog.cpp @@ -344,18 +344,4 @@ void Dialog::removeWidget(Widget *del) { } } -ButtonWidget *Dialog::addButton(GuiObject *boss, int x, int y, const Common::String &label, uint32 cmd, char hotkey) { - int w, h; - - if (g_gui.getWidgetSize() == kBigWidgetSize) { - w = kBigButtonWidth; - h = kBigButtonHeight; - } else { - w = kButtonWidth; - h = kButtonHeight; - } - - return new ButtonWidget(boss, x, y, w, h, label, cmd, hotkey); -} - } // End of namespace GUI |