Start merging fg/bg layers, draw using SP-AA

This commit is contained in:
Daniel Imms
2017-09-13 15:21:40 -07:00
parent 5538481833
commit 3656617044
7 changed files with 30 additions and 26 deletions
+2 -1
View File
@@ -25,12 +25,13 @@ export abstract class BaseRenderLayer implements IRenderLayer {
container: HTMLElement,
id: string,
zIndex: number,
alpha: boolean,
protected colors: IColorSet
) {
this._canvas = document.createElement('canvas');
this._canvas.id = `xterm-${id}-layer`;
this._canvas.style.zIndex = zIndex.toString();
this._ctx = this._canvas.getContext('2d');
this._ctx = this._canvas.getContext('2d', {alpha});
this._ctx.scale(window.devicePixelRatio, window.devicePixelRatio);
container.appendChild(this._canvas);
}