Skip to content

Commit cd1ef37

Browse files
committed
Save non-indexed output as 24bpp instead of 32bpp
1 parent c61705e commit cd1ef37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Types/FileIO.bmx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ Type FileIO
9696
saveSuccess = False
9797
EndSelect
9898
Else
99-
saveSuccess = SavePixmapPNG(pixmapToSave, filename)
99+
saveSuccess = SavePixmapPNG(ConvertPixmap(pixmapToSave, PF_RGB888), filename)
100100
EndIf
101101
If Not saveSuccess Then
102102
Notify("Failed to save file: " + filename, True)
@@ -144,7 +144,7 @@ Type FileIO
144144
saveSuccess = False
145145
EndSelect
146146
Else
147-
saveSuccess = SavePixmapPNG(pixmapToSave[limb, frame], fullFilename + ".png")
147+
saveSuccess = SavePixmapPNG(ConvertPixmap(pixmapToSave[limb, frame], PF_RGB888), fullFilename + ".png")
148148
EndIf
149149

150150
If Not saveSuccess Then

0 commit comments

Comments
 (0)