From 37ed0b838cd979854c16b0115fe80e575483a312 Mon Sep 17 00:00:00 2001 From: Andrey Sidorov Date: Fri, 24 May 2013 17:12:54 +1000 Subject: [PATCH 1/3] bump rfb2 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 89c57ac..9f9f381 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "license": "MIT", "readmeFilename": "README.md", "dependencies": { - "rfb2": "0.0.4", + "rfb2": "0.0.6", "gif": "git+ssh://git@github.com:sidorares/node-gif.git#gif-stream" } } From ab639dd4098a2f2c4d9c010a9996a4f2d764c2e3 Mon Sep 17 00:00:00 2001 From: Andrey Sidorov Date: Fri, 24 May 2013 19:06:49 +1000 Subject: [PATCH 2/3] remove link to local rfb install --- vnc-over-gif.js | 1 - 1 file changed, 1 deletion(-) diff --git a/vnc-over-gif.js b/vnc-over-gif.js index 32a6ea8..ff33ce6 100755 --- a/vnc-over-gif.js +++ b/vnc-over-gif.js @@ -1,7 +1,6 @@ #!/usr/bin/env node var GifLib = require('gif'); -//var rfb = require('./vnc/rfbclient'); var rfb = require('rfb2'); var url = require('url'); From 05d360371f9fc1ab08cee38772011eebb46ec07c Mon Sep 17 00:00:00 2001 From: Andrey Sidorov Date: Fri, 24 May 2013 19:13:13 +1000 Subject: [PATCH 3/3] buffer type is constructor argument, not push() --- vnc-over-gif.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vnc-over-gif.js b/vnc-over-gif.js index ff33ce6..0d56989 100755 --- a/vnc-over-gif.js +++ b/vnc-over-gif.js @@ -29,7 +29,7 @@ http.createServer(function(req, res) { rgb[offset++] = rect.buffer[i+1]; rgb[offset++] = rect.buffer[i]; } - gif.push(rgb, rect.x, rect.y, rect.width, rect.height, 'rgb'); + gif.push(rgb, rect.x, rect.y, rect.width, rect.height); gif.endPush(); // send on vnc disconnect?