mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-02-23 01:44:42 +03:00
Use picture.datatype's PromoteMask function so we get an alpha channel for non-alpha bitmaps loaded through datatypes.library
This commit is contained in:
parent
efc2d5e03b
commit
8b9963e7ef
@ -356,6 +356,7 @@ struct bitmap *ami_bitmap_from_datatype(char *filename)
|
||||
if(dto = NewDTObject(filename,
|
||||
DTA_GroupID, GID_PICTURE,
|
||||
PDTA_DestMode, PMODE_V43,
|
||||
PDTA_PromoteMask, TRUE,
|
||||
TAG_DONE))
|
||||
{
|
||||
struct BitMapHeader *bmh;
|
||||
|
@ -138,6 +138,7 @@ Object *amiga_dt_picture_newdtobject(struct amiga_dt_picture_content *adt)
|
||||
DTA_SourceSize, size,
|
||||
DTA_GroupID, GID_PICTURE,
|
||||
PDTA_DestMode, PMODE_V43,
|
||||
PDTA_PromoteMask, TRUE,
|
||||
TAG_DONE);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user