Fix sub-pixel anti-aliasing for uncached text

Fixes #1032
This commit is contained in:
Daniel Imms
2017-10-05 19:31:07 -07:00
parent 22af08d86e
commit 0a08d6389a
+1 -1
View File
@@ -31,7 +31,7 @@ export abstract class BaseRenderLayer implements IRenderLayer {
this._canvas = document.createElement('canvas');
this._canvas.id = `xterm-${id}-layer`;
this._canvas.style.zIndex = zIndex.toString();
this._ctx = this._canvas.getContext('2d', {_alpha});
this._ctx = this._canvas.getContext('2d', {alpha: _alpha});
this._ctx.scale(window.devicePixelRatio, window.devicePixelRatio);
// Draw the background if this is an opaque layer
if (!_alpha) {