Add contrast caching for DOM renderer

This commit is contained in:
Daniel Imms
2019-11-12 09:33:50 -08:00
parent c2474626f0
commit faaa07be68
6 changed files with 76 additions and 6 deletions
@@ -24,7 +24,8 @@ export function generateConfig(scaledCharWidth: number, scaledCharHeight: number
selectionOpaque: NULL_COLOR,
// 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()
ansi: colors.ansi.slice(),
contrastCache: {} as any
};
return {
devicePixelRatio: window.devicePixelRatio,