Reverted previous commit.

svn-id: r36226
This commit is contained in:
Vicent Marti 2009-02-06 23:28:08 +00:00
parent 30189f09d9
commit 108d4cfbd0
6 changed files with 44 additions and 18 deletions

View file

@ -199,7 +199,15 @@ void StaticTextWidget::setValue(int value) {
void StaticTextWidget::setLabel(const Common::String &label) {
_label = label;
this->draw();
// get parent's size
const uint16 w = _boss->getWidth();
const uint16 h = _boss->getHeight();
const int16 x = _boss->getAbsX();
const int16 y = _boss->getAbsY();
// restore the parent's background and redraw it again.
g_gui.theme()->restoreBackground(Common::Rect(x, y, x + w, y + h));
_boss->draw();
}