1
0
mirror of synced 2025-02-28 07:30:45 +01:00

Fix last issue with font conversion for T*BB.

This commit is contained in:
Jennifer Taylor 2020-11-06 19:02:41 +00:00
parent 7cb2220386
commit 042cce481f

@ -119,7 +119,7 @@ class DXTBuffer:
c1: Tuple[int, int, int, int], c1: Tuple[int, int, int, int],
alpha: int, alpha: int,
) -> None: ) -> 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 pixel_color = None
r0 = c0[0] 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: 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 # Using the same method as the colors calculate the alpha values
alpha_index = 3 * ((4 * j) + i) alpha_index = 3 * ((4 * j) + i)
alpha_code = None alpha_code = None