2 * noVNC: HTML5 VNC client
3 * Copyright (C) 2019 The noVNC Authors
4 * Licensed under MPL 2.0 (see LICENSE.txt)
6 * See README.md for usage and integration instructions.
10export default class CopyRectDecoder {
11 decodeRect(x, y, width, height, sock, display, depth) {
12 if (sock.rQwait("COPYRECT", 4)) {
16 let deltaX = sock.rQshift16();
17 let deltaY = sock.rQshift16();
19 if ((width === 0) || (height === 0)) {
23 display.copyImage(deltaX, deltaY, x, y, width, height);