mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Only refresh char atlas when char dimensions are valid
See Microsoft/vscode#34493
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user