diff --git a/package.json b/package.json index 56c132f..1028f9e 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "license": "MIT", "readmeFilename": "README.md", "dependencies": { - "rfb2": "0.0.4", + "rfb2": "0.0.7", "gif": "2.0.2" } } diff --git a/vnc-over-gif.js b/vnc-over-gif.js index acaf652..2fa7c7a 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'); @@ -30,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?