Trying to fix PutImage BadLength

This commit is contained in:
champii 2014-09-03 01:10:31 +02:00
parent 793b551b7a
commit 3b6f692d54

View file

@ -775,7 +775,7 @@ var templates = {
// TODO: move code to calculate reqLength and use BigReq if needed outside of corereq.js // TODO: move code to calculate reqLength and use BigReq if needed outside of corereq.js
// NOTE: big req is used here (first 'L' in format, 0 and +1 in params), won't work if not enabled // NOTE: big req is used here (first 'L' in format, 0 and +1 in params), won't work if not enabled
return [ 'CCSLLLSSssCCxxaa', [72, format, 0, reqLen, drawable, gc, width, height, dstX, dstY, leftPad, depth, data, pad]]; return [ 'CCSLLLSSssCCxxaa', [72, format, 0, 1+reqLen, drawable, gc, width, height, dstX, dstY, leftPad, depth, data, pad]];
// return [ 'CCSLLLSSssCCxxaa', [72, format, 0, 1+reqLen, drawable, gc, width, height, dstX, dstY, leftPad, depth, data, pad]]; // return [ 'CCSLLLSSssCCxxaa', [72, format, 0, 1+reqLen, drawable, gc, width, height, dstX, dstY, leftPad, depth, data, pad]];
} }
], ],
@ -791,7 +791,7 @@ var templates = {
return { return {
depth: depth, depth: depth,
visualId: visualId, visualId: visualId,
data: buf.slice(20) data: buf.slice(24)
}; };
} }
], ],