mirror of
https://git.triforceproject.com/triforce/source
synced 2026-11-29 04:18:49 -04:00
Triforce v0.8.5
A Randomizer page in the launcher, a new title screen with Mods and Save Select tabs, scaling changes applied in game, the Jabu-Jabu bars fixed, renderer frame-time work and the brightness-flash fix, and fixes from the 0.8.4 reports.
This commit is contained in:
@@ -1540,9 +1540,10 @@ public static class Astc
|
||||
{
|
||||
if (blockWidth < 4 || blockWidth > 12 || blockHeight < 4 || blockHeight > 12)
|
||||
throw new NotSupportedException("ASTC block " + blockWidth + "x" + blockHeight);
|
||||
ImageLimits.Check(width, height);
|
||||
var rows = (height + blockHeight - 1) / blockHeight;
|
||||
var cols = (width + blockWidth - 1) / blockWidth;
|
||||
if (data.Length < rows * cols * 16)
|
||||
if (data.Length < (long)rows * cols * 16)
|
||||
throw new InvalidDataException("ASTC data is shorter than the image");
|
||||
var output = new byte[width * height * 4];
|
||||
Parallel.For(0, rows, () => new Scratch(), (yIndex, _, scratch) =>
|
||||
|
||||
Reference in New Issue
Block a user