graphics/freeimage: fix endianness issues better
This commit is contained in:
parent
ea1d2da0e7
commit
93f1d97256
|
@ -1,6 +1,6 @@
|
||||||
PORTNAME= freeimage
|
PORTNAME= freeimage
|
||||||
PORTVERSION= 3.18.0
|
PORTVERSION= 3.18.0
|
||||||
PORTREVISION= 3
|
PORTREVISION= 4
|
||||||
CATEGORIES= graphics
|
CATEGORIES= graphics
|
||||||
MASTER_SITES= SF/${PORTNAME}/Source%20Distribution/${PORTVERSION}
|
MASTER_SITES= SF/${PORTNAME}/Source%20Distribution/${PORTVERSION}
|
||||||
DISTNAME= FreeImage${PORTVERSION:S/.//g}
|
DISTNAME= FreeImage${PORTVERSION:S/.//g}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
--- Source/FreeImage/PluginDDS.cpp.orig 2018-11-18 16:17:59 UTC
|
--- Source/FreeImage/PluginDDS.cpp.orig 2018-11-18 16:17:59 UTC
|
||||||
+++ Source/FreeImage/PluginDDS.cpp
|
+++ Source/FreeImage/PluginDDS.cpp
|
||||||
@@ -356,14 +356,6 @@ SwapHeader(DDSHEADER *header) {
|
@@ -356,14 +356,14 @@ SwapHeader(DDSHEADER *header) {
|
||||||
for(int i=0; i<11; i++) {
|
for(int i=0; i<11; i++) {
|
||||||
SwapLong(&header->surfaceDesc.dwReserved1[i]);
|
SwapLong(&header->surfaceDesc.dwReserved1[i]);
|
||||||
}
|
}
|
||||||
|
@ -12,6 +12,14 @@
|
||||||
- SwapLong(&header->surfaceDesc.ddpfPixelFormat.dwGBitMask);
|
- SwapLong(&header->surfaceDesc.ddpfPixelFormat.dwGBitMask);
|
||||||
- SwapLong(&header->surfaceDesc.ddpfPixelFormat.dwBBitMask);
|
- SwapLong(&header->surfaceDesc.ddpfPixelFormat.dwBBitMask);
|
||||||
- SwapLong(&header->surfaceDesc.ddpfPixelFormat.dwRGBAlphaBitMask);
|
- SwapLong(&header->surfaceDesc.ddpfPixelFormat.dwRGBAlphaBitMask);
|
||||||
|
+ SwapLong(&header->surfaceDesc.ddspf.dwSize);
|
||||||
|
+ SwapLong(&header->surfaceDesc.ddspf.dwFlags);
|
||||||
|
+ SwapLong(&header->surfaceDesc.ddspf.dwFourCC);
|
||||||
|
+ SwapLong(&header->surfaceDesc.ddspf.dwRGBBitCount);
|
||||||
|
+ SwapLong(&header->surfaceDesc.ddspf.dwRBitMask);
|
||||||
|
+ SwapLong(&header->surfaceDesc.ddspf.dwGBitMask);
|
||||||
|
+ SwapLong(&header->surfaceDesc.ddspf.dwBBitMask);
|
||||||
|
+ SwapLong(&header->surfaceDesc.ddspf.dwRGBAlphaBitMask);
|
||||||
SwapLong(&header->surfaceDesc.ddsCaps.dwCaps1);
|
SwapLong(&header->surfaceDesc.ddsCaps.dwCaps1);
|
||||||
SwapLong(&header->surfaceDesc.ddsCaps.dwCaps2);
|
SwapLong(&header->surfaceDesc.ddsCaps.dwCaps2);
|
||||||
SwapLong(&header->surfaceDesc.ddsCaps.dwReserved[0]);
|
SwapLong(&header->surfaceDesc.ddsCaps.dwReserved[0]);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user