Handle overflowing to new row

This commit is contained in:
Daniel Imms
2025-01-07 06:28:59 -08:00
parent ff9a3a1067
commit a7b98de833
6 changed files with 31 additions and 18 deletions
@@ -31,9 +31,10 @@ export function acquireTextureAtlas(
deviceCellHeight: number,
deviceCharWidth: number,
deviceCharHeight: number,
devicePixelRatio: number
devicePixelRatio: number,
deviceMaxTextureSize: number
): ITextureAtlas {
const newConfig = generateConfig(deviceCellWidth, deviceCellHeight, deviceCharWidth, deviceCharHeight, options, colors, devicePixelRatio);
const newConfig = generateConfig(deviceCellWidth, deviceCellHeight, deviceCharWidth, deviceCharHeight, options, colors, devicePixelRatio, deviceMaxTextureSize);
// Check to see if the terminal already owns this config
for (let i = 0; i < charAtlasCache.length; i++) {