mirror of
https://git.planet-casio.com/Lephenixnoir/fxsdk.git
synced 2024-12-28 04:23:37 +01:00
fxconv: fix double object file size for RGB565 images
This commit is contained in:
parent
00b85297a3
commit
a7046966da
1 changed files with 1 additions and 1 deletions
|
@ -1033,7 +1033,7 @@ def image_encode(img, format):
|
|||
if format.depth == IMAGE_RGB16:
|
||||
# Preserve alignment between rows by padding to 4 bytes
|
||||
stride = (img.width + 1) // 2 * 4
|
||||
size = stride * img.height * 2
|
||||
size = stride * img.height
|
||||
elif format.depth == IMAGE_P8:
|
||||
size = img.width * img.height
|
||||
stride = img.width
|
||||
|
|
Loading…
Reference in a new issue