mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 08:03:30 +02:00
Fix misc eslint errors.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user