mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-17 01:33:16 +03:00
Handle the bltmask being NULL
This commit is contained in:
parent
2ad93ed773
commit
bfb9e1401e
10
amiga/gui.c
10
amiga/gui.c
@ -1711,9 +1711,13 @@ static void gui_window_set_icon(struct gui_window *g, hlcache_handle *icon)
|
||||
tag, tag_data,
|
||||
TAG_DONE);
|
||||
#else
|
||||
/*\todo we are assuming we are always masking here, which might not be true */
|
||||
BltMaskBitMapRastPort(bm, 0, 0, g->shared->win->RPort,
|
||||
bbox->Left, bbox->Top, 16, 16, minterm, tag_data);
|
||||
if(tag_data) {
|
||||
BltMaskBitMapRastPort(bm, 0, 0, g->shared->win->RPort,
|
||||
bbox->Left, bbox->Top, 16, 16, minterm, tag_data);
|
||||
} else {
|
||||
BltBitMapRastPort(bm, 0, 0, g->shared->win->RPort,
|
||||
bbox->Left, bbox->Top, 16, 16, 0xc0);
|
||||
}
|
||||
#endif
|
||||
ami_gui_free_space_box(bbox);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user