diff options
| author | George Hazan <ghazan@miranda.im> | 2021-12-26 20:31:39 +0300 |
|---|---|---|
| committer | George Hazan <ghazan@miranda.im> | 2021-12-26 20:31:39 +0300 |
| commit | cddcd7483a7c472598af098e759e5d309024f606 (patch) | |
| tree | b0a227d6e087c41958cc84d27bc323353248aae5 /libs/freeimage/src/FreeImageToolkit/Colors.cpp | |
| parent | 1039b2829a264280493ba0fa979214fe024dc70c (diff) | |
DWORD -> uint32_t
Diffstat (limited to 'libs/freeimage/src/FreeImageToolkit/Colors.cpp')
| -rw-r--r-- | libs/freeimage/src/FreeImageToolkit/Colors.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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: |
