mirror of
https://github.com/robmcmullen/asmgen.git
synced 2025-02-20 15:29:02 +00:00
pypng on my platform returns an iterator instead of a sequence of bytes, so have to force pixelData to a list
This commit is contained in:
parent
f031405e33
commit
ffcfab2ca2
@ -30,7 +30,7 @@ def main(argv):
|
||||
|
||||
width = pngdata[0]
|
||||
height = pngdata[1]
|
||||
pixelData = pngdata[2]
|
||||
pixelData = list(pngdata[2])
|
||||
byteWidth = width/2+1+1 # TODO: Calculate a power of two for this
|
||||
niceName = os.path.splitext(pngfile)[0].upper()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user