Got the colour conversion wrong in colour picking

This commit is contained in:
williame 2013-11-30 21:44:53 +01:00
parent f217db38f1
commit 125e1c53dc
1 changed files with 3 additions and 3 deletions

View File

@ -1846,9 +1846,9 @@ void BaseColorPickEntity::assign_color() {
// we expand it to true-color for use with OpenGL
const int
r = (nextColorID >> 11) & ((1<<6)-1),
b = (nextColorID >> 5) & ((1<<7)-1),
g = nextColorID & ((1<<6)-1);
r = (nextColorID >> 11) & ((1<<5)-1),
g = (nextColorID >> 5) & ((1<<6)-1),
b = nextColorID & ((1<<5)-1);
uniqueColorID[0] = r << 3;
uniqueColorID[1] = g << 2;