mirror of
https://github.com/danbulant/node-x11
synced 2026-05-21 13:29:13 +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
|
||||
// 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) {
|
||||
// opt-in BigReq
|
||||
if (!options.disableBigRequests) {
|
||||
console.log('Enable Big Requests')
|
||||
client.require('big-requests', function(BigReq) {
|
||||
BigReq.Enable(function(err, maxLen) {
|
||||
display.max_request_length = maxLen;
|
||||
|
|
|
|||
Loading…
Reference in a new issue