[Scummvm-cvs-logs] scummvm master -> f41bc8bd98ce1901ceab80fa61a80853e7e876cb
lordhoto
lordhoto at gmail.com
Sun Jan 29 21:17:43 CET 2012
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
f41bc8bd98 GUI: Slight formatting fix.
Commit: f41bc8bd98ce1901ceab80fa61a80853e7e876cb
https://github.com/scummvm/scummvm/commit/f41bc8bd98ce1901ceab80fa61a80853e7e876cb
Author: Johannes Schickel (lordhoto at scummvm.org)
Date: 2012-01-29T12:17:01-08:00
Commit Message:
GUI: Slight formatting fix.
Changed paths:
gui/widget.cpp
diff --git a/gui/widget.cpp b/gui/widget.cpp
index 82007c5..0e2fd24 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) {
More information about the Scummvm-git-logs
mailing list