support rotation
This commit is contained in:
parent
79d33febb2
commit
044c673e79
|
|
@ -1164,12 +1164,13 @@ export default class RFB extends EventTargetMixin {
|
||||||
if (this._sock.rQwait("server initialization", 24)) { return false; }
|
if (this._sock.rQwait("server initialization", 24)) { return false; }
|
||||||
|
|
||||||
/* Screen size */
|
/* Screen size */
|
||||||
|
let height, width;
|
||||||
if (this._rotate === 'right' || this._rotate === 'left') {
|
if (this._rotate === 'right' || this._rotate === 'left') {
|
||||||
this._fb_height = this._sock.rQshift16();
|
height = this._sock.rQshift16();
|
||||||
this._fb_width = this._sock.rQshift16();
|
width = this._sock.rQshift16();
|
||||||
} else {
|
} else {
|
||||||
this._fb_width = this._sock.rQshift16();
|
width = this._sock.rQshift16();
|
||||||
this._fb_height = this._sock.rQshift16();
|
height = this._sock.rQshift16();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* PIXEL_FORMAT */
|
/* PIXEL_FORMAT */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue