fix in calculation rgba32 visual

This commit is contained in:
Andrey Sidorov 2012-11-27 10:40:59 +11:00
parent c1df43d949
commit 11c6f05e9f

View file

@ -378,7 +378,8 @@ exports.requireExt = function(display, callback)
ext.mono1 = f[0] ;
if (f[2] == 24 && f[3] == 16 && f[5] == 8 && f[7] == 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] ;
}
callback(ext);