summaryrefslogtreecommitdiff
path: root/plugins/AVS/src/acc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/AVS/src/acc.cpp')
-rw-r--r--plugins/AVS/src/acc.cpp6
1 files changed, 3 insertions, 3 deletions
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];