提交 b619d926 编写于 作者: M meganrogge 提交者: Megan Rogge

use canvas if webgl throws

上级 e7ce7031
......@@ -423,7 +423,7 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
fastScrollModifier: 'alt',
fastScrollSensitivity: editorOptions.fastScrollSensitivity,
scrollSensitivity: editorOptions.mouseWheelScrollSensitivity,
rendererType: config.rendererType === 'auto' || config.rendererType === 'experimentalWebgl' ? 'dom' : config.rendererType,
rendererType: config.rendererType === 'auto' || config.rendererType === 'experimentalWebgl' ? 'canvas' : config.rendererType,
wordSeparator: config.wordSeparators
});
this._xterm = xterm;
......@@ -1333,7 +1333,7 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
this._xterm.loadAddon(this._webglAddon);
} catch {
this._disposeOfWebglRenderer();
this._safeSetOption('rendererType', 'dom');
this._safeSetOption('rendererType', 'canvas');
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册