summaryrefslogtreecommitdiff
path: root/amiga/dt_anim.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2014-04-05 20:23:29 +0100
committerChris Young <chris@unsatisfactorysoftware.co.uk>2014-04-05 20:26:40 +0100
commitba5bae389b9bfed07e94fc8ec3191f4dcfa714f0 (patch)
tree1541ccf0e6bc2eaa76fb47317650fdf5347008ea /amiga/dt_anim.c
parent65adc1712123f81847a85ce0374acc5a741368ec (diff)
downloadnetsurf-ba5bae389b9bfed07e94fc8ec3191f4dcfa714f0.tar.gz
netsurf-ba5bae389b9bfed07e94fc8ec3191f4dcfa714f0.tar.bz2
Fix some cppcheck variableHidingTypedef warnings
Diffstat (limited to 'amiga/dt_anim.c')
-rw-r--r--amiga/dt_anim.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/amiga/dt_anim.c b/amiga/dt_anim.c
index d6e5c1096..4722d2dd2 100644
--- a/amiga/dt_anim.c
+++ b/amiga/dt_anim.c
@@ -337,20 +337,20 @@ APTR ami_colormap_to_clut(struct ColorMap *cmap)
{
int i;
UBYTE *clut = AllocVecTags(256 * 4, AVT_ClearWithValue, 0, TAG_DONE); /* NB: Was not MEMF_PRIVATE */
- ULONG colour[256 * 4];
+ ULONG colr[256 * 4];
if(!clut) return NULL;
/* Get the palette from the ColorMap */
- GetRGB32(cmap, 0, 256, (ULONG *)&colour);
+ GetRGB32(cmap, 0, 256, (ULONG *)&colr);
/* convert it to a table of ARGB values */
for(i = 0; i < 1024; i += 4)
{
clut[i] = (0xff << 24) |
- ((colour[i] & 0xff000000) >> 8) |
- ((colour[i + 1] & 0xff000000) >> 16) |
- ((colour[i + 2] & 0xff000000) >> 24);
+ ((colr[i] & 0xff000000) >> 8) |
+ ((colr[i + 1] & 0xff000000) >> 16) |
+ ((colr[i + 2] & 0xff000000) >> 24);
}
return clut;