Skip to content
Browse files

hack fix for some runtime errors

  • Loading branch information...
1 parent e9431b9 commit 66e35b917c25173780b1c87795ed474bf726679b @substack committed Apr 6, 2012
Showing with 6 additions and 6 deletions.
  1. +4 −4 lib/messages.js
  2. +2 −2 package.json
View
8 lib/messages.js
@@ -21,7 +21,7 @@ exports.message = function (rfb, opts) {
));
}
else {
- handler.call(this, rfb, opts);
+ handler.call(this, rfb, opts, vars.pf);
}
})
};
@@ -39,7 +39,7 @@ exports.serverMsg[serverMsgTypes.cutText] = function (rfb, opts) {
rfb.emit('warn', 'cutText not implemented');
};
-exports.serverMsg[serverMsgTypes.fbUpdate] = function (rfb, opts) {
+exports.serverMsg[serverMsgTypes.fbUpdate] = function (rfb, opts, pf) {
this
.skip(1)
.word16be('nRects')
@@ -78,8 +78,8 @@ exports.serverMsg[serverMsgTypes.fbUpdate] = function (rfb, opts) {
switch (rect.encodingType) {
case encodings.raw :
rect.type = 'raw';
- rect.bitsPerPixel = vars.pf.bitsPerPixel;
- rect.depth = vars.pf.depth;
+ rect.bitsPerPixel = pf.bitsPerPixel;
+ rect.depth = pf.depth;
var bpp = rect.bitsPerPixel / 8;
this.buffer('fb', rect.width * rect.height * bpp);
break;
View
4 package.json
@@ -1,6 +1,6 @@
{
"name": "rfb",
- "version": "0.2.0",
+ "version": "0.2.1",
"description": "Implements the client-side of the rfb protocol that vnc uses",
"author" : "James Halliday <mail@substack.net> (http://substack.net)",
"directories": {
@@ -12,7 +12,7 @@
"url": "http://github.com/substack/node-rfb.git"
},
"dependencies": {
- "binary": "~0.2.1",
+ "binary": "0.2.0",
"put": "~0.0.6",
"des": "~3.0.1"
},

0 comments on commit 66e35b9

Please sign in to comment.
Something went wrong with that request. Please try again.