From 62a186697df33c96dc1a6dac0f4dfc38652fb96f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 26 Dec 2021 16:39:04 +0300 Subject: BYTE -> uint8_t --- plugins/AVS/src/acc.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/AVS/src/acc.cpp') diff --git a/plugins/AVS/src/acc.cpp b/plugins/AVS/src/acc.cpp index a8d1bfd5ca..bc65051d2d 100644 --- a/plugins/AVS/src/acc.cpp +++ b/plugins/AVS/src/acc.cpp @@ -150,7 +150,7 @@ void AnimatedGifMountFrame(ACCData* data, int page) data->ag.times[page] = 0; if (FreeImage_GetMetadata(FIMD_ANIMATION, dib, "DisposalMethod", &tag)) - data->ag.frame.disposal_method = *(BYTE *)FreeImage_GetTagValue(tag); + data->ag.frame.disposal_method = *(uint8_t *)FreeImage_GetTagValue(tag); else data->ag.frame.disposal_method = 0; @@ -163,7 +163,7 @@ void AnimatedGifMountFrame(ACCData* data, int page) int transparent_color = -1; if (FreeImage_IsTransparent(dib)) { int count = FreeImage_GetTransparencyCount(dib); - BYTE *table = FreeImage_GetTransparencyTable(dib); + uint8_t *table = FreeImage_GetTransparencyTable(dib); for (int i = 0; i < count; i++) { if (table[i] == 0) { have_transparent = true; @@ -176,7 +176,7 @@ void AnimatedGifMountFrame(ACCData* data, int page) //copy page data into logical buffer, with full alpha opaqueness for (int y = 0; y < data->ag.frame.height; y++) { RGBQUAD *scanline = (RGBQUAD*)FreeImage_GetScanLine(data->ag.dib, data->ag.logicalHeight - (y + data->ag.frame.top) - 1) + data->ag.frame.left; - BYTE *pageline = FreeImage_GetScanLine(dib, data->ag.frame.height - y - 1); + uint8_t *pageline = FreeImage_GetScanLine(dib, data->ag.frame.height - y - 1); for (int x = 0; x < data->ag.frame.width; x++) { if (!have_transparent || *pageline != transparent_color) { *scanline = pal[*pageline]; -- cgit v1.2.3