Get Webgl rendering fg/bg overrides

This commit is contained in:
Daniel Imms
2022-05-10 04:53:31 -07:00
parent 714d4b1cd6
commit d29388394c
7 changed files with 88 additions and 9 deletions
@@ -88,6 +88,9 @@ export class WebglCharAtlas implements IDisposable {
this._tmpCanvas.width = this._config.scaledCellWidth * 4 + TMP_CANVAS_GLYPH_PADDING * 2;
this._tmpCanvas.height = this._config.scaledCellHeight + TMP_CANVAS_GLYPH_PADDING * 2;
this._tmpCtx = throwIfFalsy(this._tmpCanvas.getContext('2d', { alpha: this._config.allowTransparency }));
// This is useful for debugging
document.body.appendChild(this.cacheCanvas);
}
public dispose(): void {