Update server width based on desktop size.

This commit is contained in:
Simo Kinnunen
2015-09-15 04:02:21 +09:00
parent ced0bf99a7
commit d5bfcb16d4

View File

@@ -124,6 +124,8 @@ VncConnection.prototype.writeFramebufferUpdate = function(rectangles) {
this._write(rect.data)
break
case VncConnection.ENCODING_DESKTOPSIZE:
this._serverWidth = rect.width
this._serverHeight = rect.height
break
default:
throw new Error(util.format(