Reversed rawmode for uncompressed RGB data

This commit is contained in:
Andrew Murray 2021-04-05 17:54:34 +10:00
parent e2ac1d1c34
commit 6f87faf0ee
2 changed files with 1 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 143 KiB

After

Width:  |  Height:  |  Size: 143 KiB

View File

@ -135,7 +135,7 @@ class DdsImageFile(ImageFile.ImageFile):
rawmode += masks[0xFF000000] rawmode += masks[0xFF000000]
rawmode += masks[0xFF0000] + masks[0xFF00] + masks[0xFF] rawmode += masks[0xFF0000] + masks[0xFF00] + masks[0xFF]
self.tile = [("raw", (0, 0) + self.size, 0, (rawmode, 0, 1))] self.tile = [("raw", (0, 0) + self.size, 0, (rawmode[::-1], 0, 1))]
else: else:
data_start = header_size + 4 data_start = header_size + 4
n = 0 n = 0