VNC-269 Log incorrect rect types (#167)

This commit is contained in:
quickiwiki 2025-09-22 15:52:11 +03:00 committed by GitHub
parent 5e83e8d452
commit 6112d633de
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 4 deletions

View File

@ -1357,6 +1357,9 @@ export default class Display {
break;
default:
secondaryScreenRects++;
if (a instanceof HTMLImageElement) {
Log.Warn("Wrong rect type: " + rect.type);
} else {
if (this._screens[screenLocation.screenIndex].channel) {
this._screens[screenLocation.screenIndex].channel.postMessage({
eventType: 'rect',
@ -1368,6 +1371,7 @@ export default class Display {
}
}
}
}
if (this._enableCanvasBuffer) {