fix clipSize for overhanging canvases (#10678)

(should've included it in the other PR.....)
This commit is contained in:
The4codeblocks
2025-04-18 08:29:39 -05:00
committed by GitHub
parent 71e844c6fb
commit a394084f37

View File

@@ -63,6 +63,8 @@ public class CanvasBlock extends Block{
colorToIndex.put(palette[i], i);
}
bitsPerPixel = Mathf.log2(Mathf.nextPowerOfTwo(palette.length));
clipSize = Math.max(clipSize, size * 8 - padding);
}
@Override