mirror of
https://github.com/danbulant/node-x11
synced 2026-05-24 12:35:39 +00:00
trying to use PutImage
This commit is contained in:
parent
643c004fb5
commit
2e2a87f6ff
2 changed files with 3 additions and 1 deletions
|
|
@ -775,7 +775,8 @@ 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, 1+reqLen, drawable, gc, width, height, dstX, dstY, leftPad, depth, data, pad]];
|
return [ 'CCSLLSSssCCxxaa', [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]];
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -592,6 +592,7 @@ module.exports.createClient = function(options, initCb)
|
||||||
client.on('connect', function(display) {
|
client.on('connect', function(display) {
|
||||||
// opt-in BigReq
|
// opt-in BigReq
|
||||||
if (!options.disableBigRequests) {
|
if (!options.disableBigRequests) {
|
||||||
|
console.log('Enable Big Requests')
|
||||||
client.require('big-requests', function(BigReq) {
|
client.require('big-requests', function(BigReq) {
|
||||||
BigReq.Enable(function(err, maxLen) {
|
BigReq.Enable(function(err, maxLen) {
|
||||||
display.max_request_length = maxLen;
|
display.max_request_length = maxLen;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue