Redraw background on text layer after a resize

This commit is contained in:
Daniel Imms
2017-09-13 23:56:35 -07:00
parent 068c0743a1
commit c2b765f3ff
+5
View File
@@ -76,6 +76,11 @@ export abstract class BaseRenderLayer implements IRenderLayer {
this._canvas.style.width = `${dim.canvasWidth}px`;
this._canvas.style.height = `${dim.canvasHeight}px`;
// Draw the background if this is an opaque layer
if (!this.alpha) {
this.clearAll();
}
if (charSizeChanged) {
this._refreshCharAtlas(terminal, this.colors);
}