Fix blue/red artifacting in some rectangles on mac VNC connection

This commit is contained in:
Jakub Klapacz 2025-05-07 15:51:00 -05:00
parent 2fef46fa6d
commit 92ef8d0cae
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);