From 2364d68367dcd6b901ec8d5e02a240ffc9b3acec Mon Sep 17 00:00:00 2001 From: Chris Young Date: Fri, 10 Aug 2012 18:30:01 +0100 Subject: avoid scaled images getting incorrect mask --- amiga/gui.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'amiga/gui.c') 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, -- cgit v1.2.3