From fa942c42cc780f34b96fc308a2b7fdde52088e42 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Wed, 12 Nov 2008 12:53:53 +0000 Subject: GUI: Got rid of most 'built-in' variables svn-id: r35018 --- gui/dialog.cpp | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'gui/dialog.cpp') 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 -- cgit v1.2.3