mirror of
https://github.com/danbulant/node-x11
synced 2026-05-24 12:35:39 +00:00
shift pixel 8bits left in AllocColor result
This commit is contained in:
parent
29a04525af
commit
bc641f3bce
1 changed files with 1 additions and 1 deletions
|
|
@ -498,7 +498,7 @@ module.exports = {
|
||||||
color.red = res[0];
|
color.red = res[0];
|
||||||
color.blue = res[1];
|
color.blue = res[1];
|
||||||
color.green = res[2];
|
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;
|
return color;
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue