Skip to content

Commit

Permalink
GUI: Slight formatting fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Schickel committed Jan 29, 2012
1 parent 6895ea9 commit f41bc8b
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions gui/widget.cpp
Expand Up @@ -245,16 +245,16 @@ void StaticTextWidget::setValue(int value) {
}

void StaticTextWidget::setLabel(const Common::String &label) {
if (_label != label) {
_label = label;

// when changing the label, add the CLEARBG flag
// so the widget is completely redrawn, otherwise
// the new text is drawn on top of the old one.
setFlags(WIDGET_CLEARBG);
draw();
clearFlags(WIDGET_CLEARBG);
}
if (_label != label) {
_label = label;

// when changing the label, add the CLEARBG flag
// so the widget is completely redrawn, otherwise
// the new text is drawn on top of the old one.
setFlags(WIDGET_CLEARBG);
draw();
clearFlags(WIDGET_CLEARBG);
}
}

void StaticTextWidget::setAlign(Graphics::TextAlign align) {
Expand Down

0 comments on commit f41bc8b

Please sign in to comment.