From 7c9ac8980f9af36df59654a0843cf8a72f47a2ec Mon Sep 17 00:00:00 2001 From: Chris Young Date: Fri, 10 Aug 2012 18:35:01 +0100 Subject: use minterm (ABC|ABNC|ANBC) only when necessary --- amiga/plotters.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'amiga/plotters.c') diff --git a/amiga/plotters.c b/amiga/plotters.c index 4760dcd04..f12ef1ae1 100755 --- a/amiga/plotters.c +++ b/amiga/plotters.c @@ -670,7 +670,7 @@ static bool ami_bitmap(int x, int y, int width, int height, struct bitmap *bitma } else { - ULONG tag, tag_data, minterm; + ULONG tag, tag_data, minterm = 0xc0; if(palette_mapped == false) { tag = BLITA_UseSrcAlpha; @@ -678,8 +678,8 @@ static bool ami_bitmap(int x, int y, int width, int height, struct bitmap *bitma minterm = 0xc0; } else { tag = BLITA_MaskPlane; - tag_data = (ULONG)ami_bitmap_get_mask(bitmap, width, height); - minterm = (ABC|ABNC|ANBC); + if(tag_data = (ULONG)ami_bitmap_get_mask(bitmap, width, height)) + minterm = (ABC|ABNC|ANBC); } BltBitMapTags(BLITA_Width,width, @@ -830,7 +830,7 @@ static void ami_bitmap_tile_hook(struct Hook *hook,struct RastPort *rp,struct Ba } else { - ULONG tag, tag_data, minterm; + ULONG tag, tag_data, minterm = 0xc0; if(palette_mapped == false) { tag = BLITA_UseSrcAlpha; @@ -838,8 +838,8 @@ static void ami_bitmap_tile_hook(struct Hook *hook,struct RastPort *rp,struct Ba minterm = 0xc0; } else { tag = BLITA_MaskPlane; - tag_data = (ULONG)bfbm->mask; - minterm = (ABC|ABNC|ANBC); + if(tag_data = (ULONG)bfbm->mask) + minterm = (ABC|ABNC|ANBC); } BltBitMapTags(BLITA_Width, bfbm->width, -- cgit v1.2.3