diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2012-08-10 18:35:01 +0100 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2012-08-10 18:35:01 +0100 |
commit | 7c9ac8980f9af36df59654a0843cf8a72f47a2ec (patch) | |
tree | c95012fd99e15df71862b57d2a1d6e87152aab01 /amiga | |
parent | 2364d68367dcd6b901ec8d5e02a240ffc9b3acec (diff) | |
download | netsurf-7c9ac8980f9af36df59654a0843cf8a72f47a2ec.tar.gz netsurf-7c9ac8980f9af36df59654a0843cf8a72f47a2ec.tar.bz2 |
use minterm (ABC|ABNC|ANBC) only when necessary
Diffstat (limited to 'amiga')
-rwxr-xr-x | amiga/plotters.c | 12 |
1 files changed, 6 insertions, 6 deletions
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, |