Use all and not only 16 Ansi colors in CharAtlas config

This commit is contained in:
Slawek Zachcial
2020-11-07 21:36:05 +01:00
parent d5f4ae53c9
commit bc86b7804c
+3 -1
View File
@@ -18,7 +18,9 @@ export function generateConfig(scaledCharWidth: number, scaledCharHeight: number
selection: undefined,
// 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(0, 16)
// ansi: colors.ansi.slice(0, 16)
// TODO: Using entire array to support OSC 4; can this break anything?
ansi: colors.ansi
};
return {
devicePixelRatio: window.devicePixelRatio,