mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-31 16:20:22 +00:00
Fixed problem picking non-indexed colors.
This commit is contained in:
parent
210c127477
commit
a76473bf9d
@ -703,6 +703,7 @@ static void on_color_changed(color_t color)
|
||||
if (disable_colorbar_signals)
|
||||
return;
|
||||
|
||||
if (color_type(color) == COLOR_TYPE_INDEX) {
|
||||
int index = color_get_index(color);
|
||||
palette_editor->selectColor(index);
|
||||
|
||||
@ -712,6 +713,7 @@ static void on_color_changed(color_t color)
|
||||
|
||||
jwidget_flush_redraw(window);
|
||||
}
|
||||
}
|
||||
|
||||
static void set_new_palette(Palette* palette)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user