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; diff --git a/amiga/iff_dr2d.c b/amiga/iff_dr2d.c index 6cced5b68..5709d418b 100644 --- a/amiga/iff_dr2d.c +++ b/amiga/iff_dr2d.c @@ -31,7 +31,7 @@ ULONG numcols; ULONG findcolour(ULONG newcol) { ULONG i; - ULONG colour = 0xFFFFFFFF; + ULONG colr = 0xFFFFFFFF; UBYTE red,grn,blu; red = svgtiny_RED(newcol); @@ -41,20 +41,20 @@ ULONG findcolour(ULONG newcol) for(i=0;irect.MaxY = scrn->Height-1; } -static ULONG ami_plot_obtain_pen(struct MinList *shared_pens, ULONG colour) +static ULONG ami_plot_obtain_pen(struct MinList *shared_pens, ULONG colr) { struct ami_plot_pen *node; ULONG pen = ObtainBestPenA(scrn->ViewPort.ColorMap, - (colour & 0x000000ff) << 24, - (colour & 0x0000ff00) << 16, - (colour & 0x00ff0000) << 8, + (colr & 0x000000ff) << 24, + (colr & 0x0000ff00) << 16, + (colr & 0x00ff0000) << 8, NULL); - if(pen == -1) LOG(("WARNING: Cannot allocate pen for ABGR:%lx", colour)); + if(pen == -1) LOG(("WARNING: Cannot allocate pen for ABGR:%lx", colr)); if(shared_pens != NULL) { if(node = (struct ami_plot_pen *)AllocVecTagList(sizeof(struct ami_plot_pen), NULL)) { @@ -278,26 +278,26 @@ void ami_plot_release_pens(struct MinList *shared_pens) }while(node = nnode); } -static void ami_plot_setapen(ULONG colour) +static void ami_plot_setapen(ULONG colr) { if(palette_mapped == false) { SetRPAttrs(glob->rp, RPTAG_APenColor, - ns_color_to_nscss(colour), + ns_color_to_nscss(colr), TAG_DONE); } else { - ULONG pen = ami_plot_obtain_pen(glob->shared_pens, colour); + ULONG pen = ami_plot_obtain_pen(glob->shared_pens, colr); if(pen != -1) SetAPen(glob->rp, pen); } } -static void ami_plot_setopen(ULONG colour) +static void ami_plot_setopen(ULONG colr) { if(palette_mapped == false) { SetRPAttrs(glob->rp, RPTAG_OPenColor, - ns_color_to_nscss(colour), + ns_color_to_nscss(colr), TAG_DONE); } else { - ULONG pen = ami_plot_obtain_pen(glob->shared_pens, colour); + ULONG pen = ami_plot_obtain_pen(glob->shared_pens, colr); if(pen != -1) SetOPen(glob->rp, pen); } }