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