Fix blue/red artifacting in some rectangles on mac VNC connection
This commit is contained in:
parent
2fef46fa6d
commit
92ef8d0cae
|
|
@ -335,6 +335,10 @@ export default class Display {
|
||||||
'color': color
|
'color': color
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
// For Virtualization server, swap R and B channels
|
||||||
|
if (this._isVirtualizationServer) {
|
||||||
|
color = [color[2], color[1], color[0]];
|
||||||
|
}
|
||||||
this._setFillColor(color);
|
this._setFillColor(color);
|
||||||
this._drawCtx.fillRect(x, y, width, height);
|
this._drawCtx.fillRect(x, y, width, height);
|
||||||
this._damage(x, y, width, height);
|
this._damage(x, y, width, height);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue