Send latest screen size with every update.

This commit is contained in:
Simo Kinnunen
2015-09-14 19:35:53 +09:00
parent 797e97e7c7
commit 692c043f6e
2 changed files with 18 additions and 8 deletions

View File

@@ -90,14 +90,21 @@ module.exports = syrup.serial()
}
var decoded = jpeg.decode(connState.lastFrame)
conn.writeFramebufferUpdate([{
xPosition: 0
, yPosition: 0
, width: connState.frameWidth
, height: connState.frameHeight
, encodingType: VncConnection.ENCODING_RAW
, data: decoded.data
}])
conn.writeFramebufferUpdate([
{ xPosition: 0
, yPosition: 0
, width: decoded.width
, height: decoded.height
, encodingType: VncConnection.ENCODING_RAW
, data: decoded.data
}
, { xPosition: 0
, yPosition: 0
, width: decoded.width
, height: decoded.height
, encodingType: VncConnection.ENCODING_DESKTOPSIZE
}
])
connState.updateRequests = 0
connState.sentFrameTime = connState.lastFrameTime