From cddcd7483a7c472598af098e759e5d309024f606 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 26 Dec 2021 20:31:39 +0300 Subject: DWORD -> uint32_t --- libs/freeimage/src/FreeImageToolkit/Colors.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libs/freeimage/src/FreeImageToolkit/Colors.cpp') diff --git a/libs/freeimage/src/FreeImageToolkit/Colors.cpp b/libs/freeimage/src/FreeImageToolkit/Colors.cpp index c32f52fcc3..22dcf4103f 100644 --- a/libs/freeimage/src/FreeImageToolkit/Colors.cpp +++ b/libs/freeimage/src/FreeImageToolkit/Colors.cpp @@ -351,7 +351,7 @@ bit depth is not supported (nothing is done). @return Returns TRUE if succesful, returns FALSE if the image bit depth isn't supported. */ BOOL DLL_CALLCONV -FreeImage_GetHistogram(FIBITMAP *src, DWORD *histo, FREE_IMAGE_COLOR_CHANNEL channel) { +FreeImage_GetHistogram(FIBITMAP *src, uint32_t *histo, FREE_IMAGE_COLOR_CHANNEL channel) { uint8_t pixel; uint8_t *bits = NULL; unsigned x, y; @@ -364,7 +364,7 @@ FreeImage_GetHistogram(FIBITMAP *src, DWORD *histo, FREE_IMAGE_COLOR_CHANNEL cha if(bpp == 8) { // clear histogram array - memset(histo, 0, 256 * sizeof(DWORD)); + memset(histo, 0, 256 * sizeof(uint32_t)); // compute histogram for black channel for(y = 0; y < height; y++) { bits = FreeImage_GetScanLine(src, y); @@ -380,7 +380,7 @@ FreeImage_GetHistogram(FIBITMAP *src, DWORD *histo, FREE_IMAGE_COLOR_CHANNEL cha int bytespp = bpp / 8; // bytes / pixel // clear histogram array - memset(histo, 0, 256 * sizeof(DWORD)); + memset(histo, 0, 256 * sizeof(uint32_t)); switch(channel) { case FICC_RED: -- cgit v1.2.3