mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-06 21:39:57 +00:00
The color-bar does not show invalid colors in the status-bar anymore.
This commit is contained in:
parent
b334706cce
commit
c78f467ee4
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user