From 11c6f05e9f3e5b28012793d8c729d89a0cac0e03 Mon Sep 17 00:00:00 2001 From: Andrey Sidorov Date: Tue, 27 Nov 2012 10:40:59 +1100 Subject: [PATCH] fix in calculation rgba32 visual --- lib/x11/ext/render.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/x11/ext/render.js b/lib/x11/ext/render.js index cfe6914..5a580e5 100644 --- a/lib/x11/ext/render.js +++ b/lib/x11/ext/render.js @@ -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);