mirror of
https://github.com/grp/Wii.py.git
synced 2025-06-19 07:15:49 -04:00
fixed CMP debug output - CMP and RGBA8 still fail :(
This commit is contained in:
parent
30410fa33c
commit
f6733f7a81
4
TPL.py
4
TPL.py
@ -220,8 +220,8 @@ class TPL():
|
|||||||
rgbdata = self.CI14X2((w, h), tpldata, paldata)
|
rgbdata = self.CI14X2((w, h), tpldata, paldata)
|
||||||
elif(tex.format == 14):
|
elif(tex.format == 14):
|
||||||
sz = ((w + 7) >> 3) * ((w + 7) >> 3) * 32
|
sz = ((w + 7) >> 3) * ((w + 7) >> 3) * 32
|
||||||
print sz
|
#print sz
|
||||||
print len(data[tex.data_off:])
|
#print len(data[tex.data_off:])
|
||||||
tpldata = struct.unpack(">" + str(sz / 2) + "H", data[tex.data_off:tex.data_off + sz])
|
tpldata = struct.unpack(">" + str(sz / 2) + "H", data[tex.data_off:tex.data_off + sz])
|
||||||
|
|
||||||
rgbdata = self.CMP((w, h), tpldata)
|
rgbdata = self.CMP((w, h), tpldata)
|
||||||
|
Loading…
Reference in New Issue
Block a user