mirror of
https://github.com/danbulant/node-x11
synced 2026-07-04 10:40:36 +00:00
fix in calculation rgba32 visual
This commit is contained in:
parent
c1df43d949
commit
11c6f05e9f
1 changed files with 2 additions and 1 deletions
|
|
@ -378,7 +378,8 @@ exports.requireExt = function(display, callback)
|
||||||
ext.mono1 = f[0] ;
|
ext.mono1 = f[0] ;
|
||||||
if (f[2] == 24 && f[3] == 16 && f[5] == 8 && f[7] == 0)
|
if (f[2] == 24 && f[3] == 16 && f[5] == 8 && f[7] == 0)
|
||||||
ext.rgb24 = f[0];
|
ext.rgb24 = f[0];
|
||||||
if (f[2] == 32 && f[3] == 16 && f[5] == 8 && f[7] == 0 && f[9] == 24)
|
// 1, 32, 16, 255, 8, 255, 0, 255, 24, 255, 0
|
||||||
|
if (f[2] == 32 && f[3] == 16 && f[4] == 255 && f[5] == 8 && f[6] == 255 && f[7] == 0 && f[9] == 24)
|
||||||
ext.rgba32 = f[0] ;
|
ext.rgba32 = f[0] ;
|
||||||
}
|
}
|
||||||
callback(ext);
|
callback(ext);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue