summaryrefslogtreecommitdiff
path: root/amiga/plotters.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2012-08-07 21:22:51 +0100
committerChris Young <chris@unsatisfactorysoftware.co.uk>2012-08-07 21:22:51 +0100
commit0d8aca4f125e9376444a9d4a1db729b99bf6cbea (patch)
tree2b91e73b860dae0d983d341fd6369e7bd1080a47 /amiga/plotters.c
parentdd7935bb1f8f4437f47a1ebb097afd4c262e107f (diff)
downloadnetsurf-0d8aca4f125e9376444a9d4a1db729b99bf6cbea.tar.gz
netsurf-0d8aca4f125e9376444a9d4a1db729b99bf6cbea.tar.bz2
use abstracted function
Diffstat (limited to 'amiga/plotters.c')
-rwxr-xr-xamiga/plotters.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/amiga/plotters.c b/amiga/plotters.c
index bfa881362..66c996e71 100755
--- a/amiga/plotters.c
+++ b/amiga/plotters.c
@@ -642,12 +642,7 @@ static bool ami_bitmap(int x, int y, int width, int height, struct bitmap *bitma
(y > glob->rect.MaxY))
return true;
- if(palette_mapped == false) {
- tbm = ami_getcachenativebm(bitmap, width, height, glob->rp->BitMap);
- } else {
- tbm = ami_bitmap_get_palettemapped(bitmap, width, height);
- }
-
+ tbm = ami_bitmap_get_native(bitmap, width, height, glob->rp->BitMap);
if(!tbm) return true;
#ifdef AMI_PLOTTER_DEBUG
@@ -731,12 +726,7 @@ bool ami_bitmap_tile(int x, int y, int width, int height,
if((bitmap->opaque == false) && (bitmap->width == 1) && (bitmap->height == 1))
return true;
- if(palette_mapped == false) {
- tbm = ami_getcachenativebm(bitmap,width,height,glob->rp->BitMap);
- } else {
- tbm = ami_bitmap_get_palettemapped(bitmap, width, height);
- }
-
+ tbm = ami_bitmap_get_native(bitmap,width,height,glob->rp->BitMap);
if(!tbm) return true;
ox = x;