Only refresh char atlas when char dimensions are valid

See Microsoft/vscode#34493
This commit is contained in:
Daniel Imms
2017-09-16 10:57:49 -07:00
parent 1f49879298
commit 9b6c4e046f
+3
View File
@@ -57,6 +57,9 @@ export abstract class BaseRenderLayer implements IRenderLayer {
* @param colorSet The color set to use for the char atlas.
*/
private _refreshCharAtlas(terminal: ITerminal, colorSet: IColorSet): void {
if (this._scaledCharWidth > 0 && this._scaledCharHeight > 0) {
return;
}
this._charAtlas = null;
const result = acquireCharAtlas(terminal, this._colors, this._scaledCharWidth, this._scaledCharHeight);
if (result instanceof HTMLCanvasElement) {