GUI: Got rid of most 'built-in' variables

svn-id: r35018
This commit is contained in:
Max Horn 2008-11-12 12:53:53 +00:00
parent 201c26fcd0
commit fa942c42cc
13 changed files with 40 additions and 51 deletions

View file

@ -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