Skip to content

Commit

Permalink
Return inverse colors correctly
Browse files Browse the repository at this point in the history
This probably wasn't causing a bug since the opposite values were
being returned, it was wrong and made the code confusing though.
  • Loading branch information
Tyriar committed Nov 15, 2019
1 parent e5f4e2f commit 5aa3157
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/xterm-addon-webgl/src/atlas/WebglCharAtlas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ export class WebglCharAtlas implements IDisposable {
case Attributes.CM_DEFAULT:
default:
if (inverse) {
this._config.colors.foreground.rgba;
return this._config.colors.foreground.rgba;
}
return this._config.colors.background.rgba;
}
Expand All @@ -263,7 +263,7 @@ export class WebglCharAtlas implements IDisposable {
case Attributes.CM_DEFAULT:
default:
if (inverse) {
this._config.colors.background.rgba;
return this._config.colors.background.rgba;
}
return this._config.colors.foreground.rgba;
}
Expand Down

0 comments on commit 5aa3157

Please sign in to comment.