The color-bar does not show invalid colors in the status-bar anymore.

This commit is contained in:
David Capello 2010-06-10 23:59:12 -03:00
parent b334706cce
commit c78f467ee4

View File

@ -565,6 +565,12 @@ Rect ColorBar::getBgBounds() const
void ColorBar::updateStatusBar(color_t color, int msecs)
{
app_get_statusbar()
->showColor(msecs, "", color, 255);
if (color_is_valid(color)) {
app_get_statusbar()
->showColor(msecs, "", color, 255);
}
else {
app_get_statusbar()
->clearText();
}
}