mirror of
https://github.com/openstf/stf
synced 2025-10-05 19:42:01 +02:00
Fix misc eslint errors.
This commit is contained in:
parent
d335821ac8
commit
a902c66131
2 changed files with 9 additions and 8 deletions
|
@ -27,7 +27,7 @@ function VncConnection(conn, options) {
|
|||
this._serverPixelFormat = new PixelFormat({
|
||||
bitsPerPixel: 32
|
||||
, depth: 24
|
||||
, bigEndianFlag: os.endianness() == 'BE' ? 1 : 0
|
||||
, bigEndianFlag: os.endianness() === 'BE' ? 1 : 0
|
||||
, trueColorFlag: 1
|
||||
, redMax: 255
|
||||
, greenMax: 255
|
||||
|
@ -111,13 +111,13 @@ VncConnection.prototype.writeFramebufferUpdate = function(rectangles) {
|
|||
this._write(chunk)
|
||||
|
||||
rectangles.forEach(function(rect) {
|
||||
var chunk = new Buffer(12)
|
||||
chunk.writeUInt16BE(rect.xPosition, 0)
|
||||
chunk.writeUInt16BE(rect.yPosition, 2)
|
||||
chunk.writeUInt16BE(rect.width, 4)
|
||||
chunk.writeUInt16BE(rect.height, 6)
|
||||
chunk.writeInt32BE(rect.encodingType, 8)
|
||||
this._write(chunk)
|
||||
var rchunk = new Buffer(12)
|
||||
rchunk.writeUInt16BE(rect.xPosition, 0)
|
||||
rchunk.writeUInt16BE(rect.yPosition, 2)
|
||||
rchunk.writeUInt16BE(rect.width, 4)
|
||||
rchunk.writeUInt16BE(rect.height, 6)
|
||||
rchunk.writeInt32BE(rect.encodingType, 8)
|
||||
this._write(rchunk)
|
||||
|
||||
switch (rect.encodingType) {
|
||||
case VncConnection.ENCODING_RAW:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue