This commit is contained in:
SoftCoder 2013-11-30 14:31:05 -08:00
parent 2ff75c54e2
commit c2929e3d2b

View File

@ -1889,9 +1889,9 @@ void BaseColorPickEntity::assign_color_using_prime(unsigned char *assign_to) {
// b = (nextColorRGB >> 5) & ((1<<7)-1), // b = (nextColorRGB >> 5) & ((1<<7)-1),
// g = nextColorRGB & ((1<<6)-1); // g = nextColorRGB & ((1<<6)-1);
const int const int
r = (nextColorRGB >> 11) & ((1<<5)-1), r = (nextColorRGB >> 11) & ((1<<5)-1),
g = (nextColorRGB >> 5) & ((1<<6)-1), g = (nextColorRGB >> 5) & ((1<<6)-1),
b = nextColorRGB & ((1<<5)-1); b = nextColorRGB & ((1<<5)-1);
assign_to[0] = r << 3; assign_to[0] = r << 3;
assign_to[1] = g << 2; assign_to[1] = g << 2;