From 9b39408dffe09940589c2f00026c0e605d836b78 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Fri, 31 May 2013 19:42:57 +0100 Subject: Use macro directly --- amiga/plotters.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'amiga') diff --git a/amiga/plotters.c b/amiga/plotters.c index a4ddb61ca..d95915cc5 100755 --- a/amiga/plotters.c +++ b/amiga/plotters.c @@ -102,9 +102,6 @@ const struct plotter_table amiplot = { .option_knockout = true, }; -colour ami_abgr_to_argb(colour c) { - return ns_color_to_nscss(c); -} #ifdef NS_AMIGA_CAIRO void ami_cairo_set_colour(cairo_t *cr,colour c) @@ -288,7 +285,7 @@ static void ami_plot_setapen(ULONG colour) { if(palette_mapped == false) { SetRPAttrs(glob->rp, RPTAG_APenColor, - ami_abgr_to_argb(colour), + ns_color_to_nscss(colour), TAG_DONE); } else { ULONG pen = ami_plot_obtain_pen(glob->shared_pens, colour); @@ -300,7 +297,7 @@ static void ami_plot_setopen(ULONG colour) { if(palette_mapped == false) { SetRPAttrs(glob->rp, RPTAG_OPenColor, - ami_abgr_to_argb(colour), + ns_color_to_nscss(colour), TAG_DONE); } else { ULONG pen = ami_plot_obtain_pen(glob->shared_pens, colour); -- cgit v1.2.3