13
0

comment and minor fix

This commit is contained in:
Paul Davis 2016-06-08 21:25:48 -04:00
parent 7015ece8ef
commit 3f0cbfc152

View File

@ -2246,16 +2246,20 @@ RouteUI::route_color () const
stringstream ss (p);
/* old color format version was:
16bit value for red:16 bit value for green:16 bit value for blue
decode to rgb ..
*/
ss >> component;
ss >> colon;
color |= ((component >> 2) << 16);
ss >> component;
ss >> colon;
color |= ((component >> 2) << 8);
ss >> component;
ss >> colon;
color |= (component >> 2);
_route->presentation_info().set_color (color);