Fixed typo

This commit is contained in:
Andrew Murray 2022-10-08 22:27:53 +11:00 committed by REDxEYE
parent b6b7a7bfa4
commit eda4192618

View File

@ -444,7 +444,7 @@ def _save(im, fp, filename):
stride = (im.width * bit_count + 7) // 8 stride = (im.width * bit_count + 7) // 8
fp.write( fp.write(
o32(DDS_MAGIC) o32(DDS_MAGIC)
# header size, flags, height, width, pith, depth, mipmaps # header size, flags, height, width, pitch, depth, mipmaps
+ struct.pack("<IIIIIII", 124, flags, im.height, im.width, stride, 0, 0, ) + struct.pack("<IIIIIII", 124, flags, im.height, im.width, stride, 0, 0, )
+ struct.pack("11I", *((0,) * 11)) # reserved + struct.pack("11I", *((0,) * 11)) # reserved
# pfsize, pfflags, fourcc, bitcount # pfsize, pfflags, fourcc, bitcount