Fix DynamicCharAtlas with transparency

There were two bugs:
- We need to clear the background of _tmpCtx instead of just drawing on
  top if the background color is transparent.
- We should set the background to fully transparent if it's partially
  transparent, to avoid drawing the transparent background twice.
This commit is contained in:
Benjamin Woodruff
2018-04-15 19:43:23 -07:00
parent ac7db87fd0
commit 9c0ce1d742
4 changed files with 39 additions and 5 deletions
+1
View File
@@ -150,6 +150,7 @@ export class Renderer extends EventEmitter implements IRenderer {
}
public onOptionsChanged(): void {
this.colorManager.allowTransparency = this._terminal.options.allowTransparency;
this._runOperation(l => l.onOptionsChanged(this._terminal));
}