mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-22 20:16:54 +03:00
Stop the alpha channel getting lost on scaled bitmaps
svn path=/trunk/netsurf/; revision=9439
This commit is contained in:
parent
d5018b862d
commit
95c87008cf
@ -364,9 +364,9 @@ struct BitMap *ami_getcachenativebm(struct bitmap *bitmap,int width,int height,s
|
||||
if(GfxBase->lib_Version >= 53) // AutoDoc says v52, but this function isn't in OS4.0, so checking for v53 (OS4.1)
|
||||
{
|
||||
uint32 comptype = COMPOSITE_Src;
|
||||
uint32 flags = COMPFLAG_IgnoreDestAlpha;
|
||||
uint32 flags = 0;
|
||||
|
||||
if(!bitmap->opaque) comptype = COMPOSITE_Src_Over_Dest;
|
||||
if(bitmap->opaque) flags |= COMPFLAG_IgnoreDestAlpha;
|
||||
if(option_scale_quality) flags |= COMPFLAG_SrcFilter;
|
||||
|
||||
CompositeTags(comptype,tbm,scaledbm,
|
||||
|
Loading…
Reference in New Issue
Block a user