mirror of
https://github.com/retspen/webvirtcloud
synced 2026-11-09 03:36:48 +00:00
- Upgrade vendored noVNC library in static/js/novnc/ from 1.2.0 to 1.7.0 - Remove obsolete IE11 polyfills (promise.js, browser-es-module-loader) - Preserve custom app/styles/lite.css for embedded lite view - Update console-vnc-full.html stylesheets, modern icon set, and dialogs - Modernize console-vnc-full.html startup via UI.start() with Django context mapping - Dynamically resolve package.json and localization dictionaries via import.meta.url
27 lines
616 B
JavaScript
27 lines
616 B
JavaScript
/*
|
|
* noVNC: HTML5 VNC client
|
|
* Copyright (C) 2019 The noVNC authors
|
|
* Licensed under MPL 2.0 (see LICENSE.txt)
|
|
*
|
|
* See README.md for usage and integration instructions.
|
|
*
|
|
*/
|
|
|
|
export default class CopyRectDecoder {
|
|
decodeRect(x, y, width, height, sock, display, depth) {
|
|
if (sock.rQwait("COPYRECT", 4)) {
|
|
return false;
|
|
}
|
|
|
|
let deltaX = sock.rQshift16();
|
|
let deltaY = sock.rQshift16();
|
|
|
|
if ((width === 0) || (height === 0)) {
|
|
return true;
|
|
}
|
|
|
|
display.copyImage(deltaX, deltaY, x, y, width, height);
|
|
|
|
return true;
|
|
}
|
|
}
|