mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-30 23:43:10 +00:00
GUI: Slight formatting fix.
This commit is contained in:
parent
6895ea9ea1
commit
f41bc8bd98
@ -245,16 +245,16 @@ void StaticTextWidget::setValue(int value) {
|
||||
}
|
||||
|
||||
void StaticTextWidget::setLabel(const Common::String &label) {
|
||||
if (_label != label) {
|
||||
_label = 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);
|
||||
}
|
||||
// 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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user