aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2012-01-29 21:17:01 +0100
committerJohannes Schickel2012-01-29 21:17:01 +0100
commitf41bc8bd98ce1901ceab80fa61a80853e7e876cb (patch)
treeef44b7fed2ca3025225a08c9d29ee954e2eb6e82
parent6895ea9ea1738569e2bffc9c0f1692eb32d0838e (diff)
downloadscummvm-rg350-f41bc8bd98ce1901ceab80fa61a80853e7e876cb.tar.gz
scummvm-rg350-f41bc8bd98ce1901ceab80fa61a80853e7e876cb.tar.bz2
scummvm-rg350-f41bc8bd98ce1901ceab80fa61a80853e7e876cb.zip
GUI: Slight formatting fix.
-rw-r--r--gui/widget.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/gui/widget.cpp b/gui/widget.cpp
index 82007c588f..0e2fd248b1 100644
--- a/gui/widget.cpp
+++ b/gui/widget.cpp
@@ -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) {