diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2012-08-10 18:30:01 +0100 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2012-08-10 18:30:01 +0100 |
commit | 2364d68367dcd6b901ec8d5e02a240ffc9b3acec (patch) | |
tree | 8f31f7debde732f32101fb67270e5e2d6782f63a /amiga/plotters.c | |
parent | eaa6183567b1c9b5726a77d30e885c8b299cae6e (diff) | |
download | netsurf-2364d68367dcd6b901ec8d5e02a240ffc9b3acec.tar.gz netsurf-2364d68367dcd6b901ec8d5e02a240ffc9b3acec.tar.bz2 |
avoid scaled images getting incorrect mask
Diffstat (limited to 'amiga/plotters.c')
-rwxr-xr-x | amiga/plotters.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/amiga/plotters.c b/amiga/plotters.c index 941587ed0..4760dcd04 100755 --- a/amiga/plotters.c +++ b/amiga/plotters.c @@ -678,10 +678,9 @@ static bool ami_bitmap(int x, int y, int width, int height, struct bitmap *bitma minterm = 0xc0; } else { tag = BLITA_MaskPlane; - tag_data = (ULONG)bitmap->native_mask; + tag_data = (ULONG)ami_bitmap_get_mask(bitmap, width, height); minterm = (ABC|ABNC|ANBC); } - //BltMaskBitMapRastPort(tbm, 0, 0, glob->rp, x, y, width, height, (ABC|ABNC|ANBC), bitmap->native_mask); BltBitMapTags(BLITA_Width,width, BLITA_Height,height, @@ -783,7 +782,7 @@ bool ami_bitmap_tile(int x, int y, int width, int height, bfbm.height = height; bfbm.offsetx = ox; bfbm.offsety = oy; - bfbm.mask = bitmap->native_mask; + bfbm.mask = ami_bitmap_get_mask(bitmap, width, height);; bfh = AllocVec(sizeof(struct Hook),MEMF_CLEAR); bfh->h_Entry = (HOOKFUNC)ami_bitmap_tile_hook; bfh->h_SubEntry = 0; @@ -840,7 +839,7 @@ static void ami_bitmap_tile_hook(struct Hook *hook,struct RastPort *rp,struct Ba } else { tag = BLITA_MaskPlane; tag_data = (ULONG)bfbm->mask; - minterm = 0xc0; /* Should be (ABC|ABNC|ANBC) */ + minterm = (ABC|ABNC|ANBC); } BltBitMapTags(BLITA_Width, bfbm->width, |