Don't dim default bg in webgl

Fixes #3970
This commit is contained in:
Daniel Imms
2022-07-31 15:39:34 -07:00
parent 436f8556fd
commit 39959c2861
2 changed files with 6 additions and 3 deletions
@@ -241,7 +241,7 @@ export class WebglCharAtlas implements IDisposable {
if (dim) {
// Blend here instead of using opacity because transparent colors mess with clipping the
// glyph's bounding box
result = color.blend(this._config.colors.background, color.multiplyOpacity(result, 0.5));
result = color.blend(this._config.colors.background, color.multiplyOpacity(result, DIM_OPACITY));
}
return result;
@@ -283,7 +283,7 @@ export class WebglCharAtlas implements IDisposable {
// Apply dim to the color, opacity is fine to use for the foreground color
if (dim) {
result = color.multiplyOpacity(result, 0.5);
result = color.multiplyOpacity(result, DIM_OPACITY);
}
return result;