Cleanup. We no longer need these widget size parameters.
svn-id: r22798
This commit is contained in:
parent
acb3ff742b
commit
8975ba8963
11 changed files with 15 additions and 33 deletions
|
@ -143,7 +143,6 @@ bool Widget::isVisible() const {
|
|||
|
||||
StaticTextWidget::StaticTextWidget(GuiObject *boss, int x, int y, int w, int h, const String &text, TextAlignment align)
|
||||
: Widget(boss, x, y, w, h), _align(align) {
|
||||
_ws = g_gui.getWidgetSize();
|
||||
_flags = WIDGET_ENABLED;
|
||||
_type = kStaticTextWidget;
|
||||
_label = text;
|
||||
|
@ -151,7 +150,6 @@ StaticTextWidget::StaticTextWidget(GuiObject *boss, int x, int y, int w, int h,
|
|||
|
||||
StaticTextWidget::StaticTextWidget(GuiObject *boss, String name, const String &text)
|
||||
: Widget(boss, name) {
|
||||
_ws = g_gui.getWidgetSize();
|
||||
_flags = WIDGET_ENABLED;
|
||||
_type = kStaticTextWidget;
|
||||
_label = text;
|
||||
|
@ -190,11 +188,6 @@ void StaticTextWidget::drawWidget(bool hilite) {
|
|||
g_gui.theme()->convertAligment(_align));
|
||||
}
|
||||
|
||||
void StaticTextWidget::handleScreenChanged() {
|
||||
Widget::handleScreenChanged();
|
||||
_ws = g_gui.getWidgetSize();
|
||||
}
|
||||
|
||||
#pragma mark -
|
||||
|
||||
ButtonWidget::ButtonWidget(GuiObject *boss, int x, int y, int w, int h, const String &label, uint32 cmd, uint8 hotkey, WidgetSize ws)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue