shift pixel 8bits left in AllocColor result

This commit is contained in:
Andrey Sidorov 2012-04-11 16:43:58 +10:00
parent 29a04525af
commit bc641f3bce

View file

@ -498,7 +498,7 @@ module.exports = {
color.red = res[0];
color.blue = res[1];
color.green = res[2];
color.pixel = res[3];
color.pixel = res[3]>>8; // it looks like 3 first bytes contain RGB value in response
return color;
}
],