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:
Chris Young 2013-10-12 15:43:52 +01:00
parent efc2d5e03b
commit 8b9963e7ef
2 changed files with 2 additions and 0 deletions

View File

@ -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;

View File

@ -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);
}