From 042cce481f8602abada6f01d1267bc257779086b Mon Sep 17 00:00:00 2001 From: Jennifer Taylor Date: Fri, 6 Nov 2020 19:02:41 +0000 Subject: [PATCH] Fix last issue with font conversion for T*BB. --- bemani/format/dxt.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bemani/format/dxt.py b/bemani/format/dxt.py index 6234bf1..d06651b 100644 --- a/bemani/format/dxt.py +++ b/bemani/format/dxt.py @@ -119,7 +119,7 @@ class DXTBuffer: c1: Tuple[int, int, int, int], alpha: int, ) -> None: - code = (ctable >> (2 * ((4 * i) + j))) & 0x03 # Get the color of the current pixel + code = (ctable >> (2 * ((4 * j) + i))) & 0x03 # Get the color of the current pixel pixel_color = None r0 = c0[0] @@ -148,7 +148,6 @@ class DXTBuffer: def getAlpha(self, i: int, j: int, a0: int, a1: int, acode0: int, acode1: int) -> int: # Using the same method as the colors calculate the alpha values - alpha_index = 3 * ((4 * j) + i) alpha_code = None