package An official xmake package repository
https://xrepo.xmake.io/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.1 KiB
31 lines
1.1 KiB
diff --git a/Source/FreeImage/PluginBMP.cpp b/Source/FreeImage/PluginBMP.cpp |
|
index 76149cf..ae1f6fa 100644 |
|
--- a/Source/FreeImage/PluginBMP.cpp |
|
+++ b/Source/FreeImage/PluginBMP.cpp |
|
@@ -1419,7 +1419,7 @@ Save(FreeImageIO *io, FIBITMAP *dib, fi_handle handle, int page, int flags, void |
|
|
|
free(buffer); |
|
#ifdef FREEIMAGE_BIGENDIAN |
|
- } else if (bpp == 16) { |
|
+ } else if (dst_bpp == 16) { |
|
int padding = dst_pitch - dst_width * sizeof(WORD); |
|
WORD pad = 0; |
|
WORD pixel; |
|
@@ -1440,7 +1440,7 @@ Save(FreeImageIO *io, FIBITMAP *dib, fi_handle handle, int page, int flags, void |
|
} |
|
#endif |
|
#if FREEIMAGE_COLORORDER == FREEIMAGE_COLORORDER_RGB |
|
- } else if (bpp == 24) { |
|
+ } else if (dst_bpp == 24) { |
|
int padding = dst_pitch - dst_width * sizeof(FILE_BGR); |
|
DWORD pad = 0; |
|
FILE_BGR bgr; |
|
@@ -1461,7 +1461,7 @@ Save(FreeImageIO *io, FIBITMAP *dib, fi_handle handle, int page, int flags, void |
|
} |
|
} |
|
} |
|
- } else if (bpp == 32) { |
|
+ } else if (dst_bpp == 32) { |
|
FILE_BGRA bgra; |
|
for(unsigned y = 0; y < dst_height; y++) { |
|
BYTE *line = FreeImage_GetScanLine(dib, y);
|
|
|