mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
Fixes: https://trac.macports.org/ticket/69232 Fixes: https://trac.macports.org/ticket/67489 See also: https://sourceforge.net/p/freeimage/patches/153 https://github.com/AcademySoftwareFoundation/openexr/pull/126
30 lines
851 B
Diff
30 lines
851 B
Diff
--- Source/FreeImage/PluginBMP.cpp.orig 2016-06-15 12:35:30.000000000 +0800
|
|
+++ Source/FreeImage/PluginBMP.cpp 2024-01-30 02:26:59.000000000 +0800
|
|
@@ -1419,7 +1419,7 @@
|
|
|
|
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 @@
|
|
}
|
|
#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 @@
|
|
}
|
|
}
|
|
}
|
|
- } 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);
|