added debugging for scan render que

This commit is contained in:
Alt, Michael 2020-01-15 16:30:00 +01:00
parent beff7f4e08
commit 9f4a734a4e
2 changed files with 20 additions and 1 deletions

View File

@ -6,6 +6,7 @@
* See README.md for usage and integration instructions. * See README.md for usage and integration instructions.
*/ */
const urlParams = new URLSearchParams(window.location.search);
import * as Log from './util/logging.js'; import * as Log from './util/logging.js';
import Base64 from "./base64.js"; import Base64 from "./base64.js";
@ -789,21 +790,39 @@ export default class Display {
this.flip(true); this.flip(true);
break; break;
case 'copy': case 'copy':
if (urlParams.get('scanRender').contains('copy')) {
console.debug("_scan_renderQ: copy", a);
}
this.copyImage(a.old_x, a.old_y, a.x, a.y, a.width, a.height, true); this.copyImage(a.old_x, a.old_y, a.x, a.y, a.width, a.height, true);
break; break;
case 'fill': case 'fill':
if (urlParams.get('scanRender').contains('fill')) {
console.debug("_scan_renderQ: fill", a);
}
this.fillRect(a.x, a.y, a.width, a.height, a.color, true); this.fillRect(a.x, a.y, a.width, a.height, a.color, true);
break; break;
case 'blit': case 'blit':
if (urlParams.get('scanRender').contains('blit')) {
console.debug("_scan_renderQ: blit", a);
}
this.blitImage(a.x, a.y, a.width, a.height, a.data, 0, true); this.blitImage(a.x, a.y, a.width, a.height, a.data, 0, true);
break; break;
case 'blitRgb': case 'blitRgb':
if (urlParams.get('scanRender').contains('blitRgb')) {
console.debug("_scan_renderQ: blitRgb", a);
}
this.blitRgbImage(a.x, a.y, a.width, a.height, a.data, 0, true); this.blitRgbImage(a.x, a.y, a.width, a.height, a.data, 0, true);
break; break;
case 'blitRgbx': case 'blitRgbx':
if (urlParams.get('scanRender').contains('blitRgbx')) {
console.debug("_scan_renderQ: blitRgbx", a);
}
this.blitRgbxImage(a.x, a.y, a.width, a.height, a.data, 0, true); this.blitRgbxImage(a.x, a.y, a.width, a.height, a.data, 0, true);
break; break;
case 'img': case 'img':
if (urlParams.get('scanRender').contains('img')) {
console.debug("_scan_renderQ: img", a);
}
if (a.img.complete) { if (a.img.complete) {
this.drawImage(a.img, a.x, a.y); this.drawImage(a.img, a.x, a.y);
} else { } else {

View File

@ -1,6 +1,6 @@
{ {
"name": "@gbrehmer/novnc", "name": "@gbrehmer/novnc",
"version": "1.1.0-patch15", "version": "1.1.0-patch16",
"description": "An HTML5 VNC client", "description": "An HTML5 VNC client",
"browser": "lib/rfb", "browser": "lib/rfb",
"directories": { "directories": {