Add contrast caching to webgl

This commit is contained in:
Daniel Imms
2019-11-12 09:42:55 -08:00
parent faaa07be68
commit 8a0122f482
4 changed files with 26 additions and 13 deletions
@@ -25,7 +25,7 @@ export function generateConfig(scaledCharWidth: number, scaledCharHeight: number
// For the static char atlas, we only use the first 16 colors, but we need all 256 for the
// dynamic character atlas.
ansi: colors.ansi.slice(),
contrastCache: {} as any
contrastCache: colors.contrastCache
};
return {
devicePixelRatio: window.devicePixelRatio,