diff --git a/graphics/freeimage/Makefile b/graphics/freeimage/Makefile index 48ffe704b95b..04ac430f0d73 100644 --- a/graphics/freeimage/Makefile +++ b/graphics/freeimage/Makefile @@ -1,6 +1,6 @@ PORTNAME= freeimage PORTVERSION= 3.18.0 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= graphics MASTER_SITES= SF/${PORTNAME}/Source%20Distribution/${PORTVERSION} DISTNAME= FreeImage${PORTVERSION:S/.//g} diff --git a/graphics/freeimage/files/patch-Source_FreeImage_PluginDDS.cpp b/graphics/freeimage/files/patch-Source_FreeImage_PluginDDS.cpp index 874045df1529..8f80affd8f0c 100644 --- a/graphics/freeimage/files/patch-Source_FreeImage_PluginDDS.cpp +++ b/graphics/freeimage/files/patch-Source_FreeImage_PluginDDS.cpp @@ -1,6 +1,6 @@ --- Source/FreeImage/PluginDDS.cpp.orig 2018-11-18 16:17:59 UTC +++ 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++) { SwapLong(&header->surfaceDesc.dwReserved1[i]); } @@ -12,6 +12,14 @@ - SwapLong(&header->surfaceDesc.ddpfPixelFormat.dwGBitMask); - SwapLong(&header->surfaceDesc.ddpfPixelFormat.dwBBitMask); - 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.dwCaps2); SwapLong(&header->surfaceDesc.ddsCaps.dwReserved[0]);