Permalink
Browse files

bump from pkrumins fixes

  • Loading branch information...
2 parents 66e35b9 + 81ef69d commit 5e69959d4b80627cbf67eddb30f123184cc090b5 @substack substack committed Apr 30, 2012
Showing with 6 additions and 4 deletions.
  1. +4 −2 lib/handshake.js
  2. +1 −1 lib/messages.js
  3. +1 −1 package.json
View
@@ -123,8 +123,10 @@ exports.init = function (rfb, opts) {
.word8('blueShift')
.tap(function (pf) {
// override server values
- //pf.bitsPerPixel = 32;
- //pf.depth = 32;
+ if (rfb.engine == 'tightvnc') {
+ pf.bitsPerPixel = 32;
+ pf.depth = 32;
+ }
pf.bigEndian = 0;
pf.trueColor = 1;
View
@@ -50,7 +50,7 @@ exports.serverMsg[serverMsgTypes.fbUpdate] = function (rfb, opts, pf) {
.loop(function (end, vars) {
if (vars.index >= vars.nRects) {
rfb.emit('endRects', vars.nRects);
- if (rfb.engine == 'vmware') {
+ if (rfb.engine == 'vmware' || rfb.engine == 'tightvnc') {
rfb.dimensions(function (dims) {
rfb.subscribe({
x : 0, y : 0,
View
@@ -1,6 +1,6 @@
{
"name": "rfb",
- "version": "0.2.1",
+ "version": "0.2.2",
"description": "Implements the client-side of the rfb protocol that vnc uses",
"author" : "James Halliday <mail@substack.net> (http://substack.net)",
"directories": {

0 comments on commit 5e69959

Please sign in to comment.