Merge pull request #1 from jklapacz/master

Fix blue/red artifacting in some rectangles on mac VNC connection
This commit is contained in:
f-trycua 2025-05-07 23:04:55 +02:00 committed by GitHub
commit d5b928f8b6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -335,6 +335,10 @@ export default class Display {
'color': color
});
} else {
// For Virtualization server, swap R and B channels
if (this._isVirtualizationServer) {
color = [color[2], color[1], color[0]];
}
this._setFillColor(color);
this._drawCtx.fillRect(x, y, width, height);
this._damage(x, y, width, height);