SPB Git

spb/admin-ka

Public
616 B · 28 lines javascript
1/*2 * noVNC: HTML5 VNC client3 * Copyright (C) 2019 The noVNC authors4 * Licensed under MPL 2.0 (see LICENSE.txt)5 *6 * See README.md for usage and integration instructions.7 *8 */910export default class CopyRectDecoder {11    decodeRect(x, y, width, height, sock, display, depth) {12        if (sock.rQwait("COPYRECT", 4)) {13            return false;14        }1516        let deltaX = sock.rQshift16();17        let deltaY = sock.rQshift16();1819        if ((width === 0) || (height === 0)) {20            return true;21        }2223        display.copyImage(deltaX, deltaY, x, y, width, height);2425        return true;26    }27}28
Files · fbbdcd85e6743ad5e4545fd7153d8031e8e1b110
Menu

Theme