Fix format of some requests

This commit is contained in:
Santiago Gimeno 2013-05-21 14:31:59 +02:00
parent e69f1b7475
commit e361424792

View file

@ -488,7 +488,7 @@ module.exports = {
}, },
function(buf) function(buf)
{ {
var res = buf.unpack('LSS'); var res = buf.unpack('Lss');
ext = {}; ext = {};
ext.child = res[0]; ext.child = res[0];
ext.destX = res[1]; ext.destX = res[1];
@ -682,7 +682,7 @@ module.exports = {
PolyText8: [ PolyText8: [
function(drawable, gc, x, y, items) { function(drawable, gc, x, y, items) {
var format = 'CxSLLSS'; var format = 'CxSLLss';
var numItems = items.length; var numItems = items.length;
var reqLen = 16; var reqLen = 16;
var args = [74, 0, drawable, gc, x, y]; var args = [74, 0, drawable, gc, x, y];
@ -801,7 +801,7 @@ module.exports = {
}, },
function(buff) function(buff)
{ {
var res = buff.unpack('LSSSSSx'); var res = buff.unpack('LssSSSx');
var ext = {}; var ext = {};
ext.windowid = res[0] ext.windowid = res[0]
ext.xPos = res[1]; ext.xPos = res[1];
@ -821,7 +821,7 @@ module.exports = {
SetScreenSaver: [ SetScreenSaver: [
function(timeout, interval, preferBlanking, allowExposures) { function(timeout, interval, preferBlanking, allowExposures) {
return [ 'CxSSSCCxx', [107, 3, timeout, interval, preferBlanking, allowExposures]]; return [ 'CxSssCCxx', [107, 3, timeout, interval, preferBlanking, allowExposures]];
} }
], ],