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/gui.c | |
parent | eaa6183567b1c9b5726a77d30e885c8b299cae6e (diff) | |
download | netsurf-2364d68367dcd6b901ec8d5e02a240ffc9b3acec.tar.gz netsurf-2364d68367dcd6b901ec8d5e02a240ffc9b3acec.tar.bz2 |
avoid scaled images getting incorrect mask
Diffstat (limited to 'amiga/gui.c')
-rwxr-xr-x | amiga/gui.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/amiga/gui.c b/amiga/gui.c index 5ec38151b..d7e08f06a 100755 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -3845,8 +3845,8 @@ void gui_window_set_icon(struct gui_window *g, hlcache_handle *icon) minterm = 0xc0; } else { tag = BLITA_MaskPlane; - tag_data = (ULONG)icon_bitmap->native_mask; - minterm = 0xc0; /* should be (ABC|ABNC|ANBC); */ + tag_data = (ULONG)ami_bitmap_get_mask(icon_bitmap, 16, 16); + minterm = (ABC|ABNC|ANBC); } BltBitMapTags(BLITA_SrcX, 0, @@ -3928,8 +3928,8 @@ void gui_window_set_search_ico(hlcache_handle *ico) minterm = 0xc0; } else { tag = BLITA_MaskPlane; - tag_data = (ULONG)ico_bitmap->native_mask; - minterm = 0xc0; /* should be (ABC|ABNC|ANBC); */ + tag_data = (ULONG)ami_bitmap_get_mask(ico_bitmap, 16, 16); + minterm = (ABC|ABNC|ANBC); } BltBitMapTags(BLITA_SrcX, 0, |