Fix route color selection dialog

This commit is contained in:
Robin Gareus 2016-11-29 22:39:20 +01:00
parent d3bb4e8b08
commit ae1d4a9346
2 changed files with 2 additions and 2 deletions

View File

@ -1561,7 +1561,7 @@ void
RouteUI::choose_color ()
{
bool picked;
Gdk::Color c (gdk_color_from_rgb (_route->presentation_info().color()));
Gdk::Color c (gdk_color_from_rgba (_route->presentation_info().color()));
Gdk::Color const color = Gtkmm2ext::UI::instance()->get_color (_("Color Selection"), picked, &c);
if (picked) {

View File

@ -276,7 +276,7 @@ Gdk::Color
ARDOUR_UI_UTILS::gdk_color_from_rgba (uint32_t rgba)
{
Gdk::Color c;
set_color_from_rgb (c, rgba);
set_color_from_rgb (c, rgba >> 8);
return c;
}