summaryrefslogtreecommitdiff
path: root/libs/freeimage/src/FreeImage/LFPQuantizer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libs/freeimage/src/FreeImage/LFPQuantizer.cpp')
-rw-r--r--libs/freeimage/src/FreeImage/LFPQuantizer.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/libs/freeimage/src/FreeImage/LFPQuantizer.cpp b/libs/freeimage/src/FreeImage/LFPQuantizer.cpp
index 88d9944a9d..342615afc3 100644
--- a/libs/freeimage/src/FreeImage/LFPQuantizer.cpp
+++ b/libs/freeimage/src/FreeImage/LFPQuantizer.cpp
@@ -48,8 +48,8 @@ FIBITMAP* LFPQuantizer::Quantize(FIBITMAP *dib, int ReserveSize, RGBQUAD *Reserv
const unsigned src_pitch = FreeImage_GetPitch(dib);
const unsigned dst_pitch = FreeImage_GetPitch(dib8);
- const BYTE * const src_bits = FreeImage_GetBits(dib);
- BYTE * const dst_bits = FreeImage_GetBits(dib8);
+ const uint8_t * const src_bits = FreeImage_GetBits(dib);
+ uint8_t * const dst_bits = FreeImage_GetBits(dib8);
unsigned last_color = -1;
int last_index = 0;
@@ -64,8 +64,8 @@ FIBITMAP* LFPQuantizer::Quantize(FIBITMAP *dib, int ReserveSize, RGBQUAD *Reserv
// Process all but the last scanline.
for (unsigned y = 0; y < height - 1; ++y) {
- BYTE *dst_line = dst_bits + y * dst_pitch;
- const BYTE *src_line = src_bits + y * src_pitch;
+ uint8_t *dst_line = dst_bits + y * dst_pitch;
+ const uint8_t *src_line = src_bits + y * src_pitch;
for (unsigned x = 0; x < width; ++x) {
const unsigned color = *((unsigned *) src_line) & 0x00FFFFFF;
if (color != last_color) {
@@ -82,8 +82,8 @@ FIBITMAP* LFPQuantizer::Quantize(FIBITMAP *dib, int ReserveSize, RGBQUAD *Reserv
}
// Process all but the last pixel of the last scanline.
- BYTE *dst_line = dst_bits + (height - 1) * dst_pitch;
- const BYTE *src_line = src_bits + (height - 1) * src_pitch;
+ uint8_t *dst_line = dst_bits + (height - 1) * dst_pitch;
+ const uint8_t *src_line = src_bits + (height - 1) * src_pitch;
for (unsigned x = 0; x < width - 1; ++x) {
const unsigned color = *((unsigned *) src_line) & 0x00FFFFFF;
if (color != last_color) {
@@ -114,8 +114,8 @@ FIBITMAP* LFPQuantizer::Quantize(FIBITMAP *dib, int ReserveSize, RGBQUAD *Reserv
} else {
for (unsigned y = 0; y < height; ++y) {
- BYTE *dst_line = dst_bits + y * dst_pitch;
- const BYTE *src_line = src_bits + y * src_pitch;
+ uint8_t *dst_line = dst_bits + y * dst_pitch;
+ const uint8_t *src_line = src_bits + y * src_pitch;
for (unsigned x = 0; x < width; ++x) {
const unsigned color = *((unsigned *) src_line) & 0x00FFFFFF;
if (color != last_color) {