Return inverse colors correctly

This probably wasn't causing a bug since the opposite values were
being returned, it was wrong and made the code confusing though.
This commit is contained in:
Daniel Imms
2019-11-14 22:12:36 -08:00
parent e5f4e2ff8f
commit 5aa3157672
@@ -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;
}
@@ -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;
}