diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2009-03-05 19:07:26 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2009-03-05 19:07:26 +0000 |
commit | 2aee9f4c09491a994f1000e04fe9daf9b9806998 (patch) | |
tree | 78a83ae337e76fed5f2226530b938d5a14d09303 /amiga/bitmap.c | |
parent | a763e36d2e81827396a1ca32db4cd77e0e70a61f (diff) | |
download | netsurf-2aee9f4c09491a994f1000e04fe9daf9b9806998.tar.gz netsurf-2aee9f4c09491a994f1000e04fe9daf9b9806998.tar.bz2 |
Stop OS4.1 losing alpha channels when scaling images
svn path=/trunk/netsurf/; revision=6720
Diffstat (limited to 'amiga/bitmap.c')
-rw-r--r-- | amiga/bitmap.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/amiga/bitmap.c b/amiga/bitmap.c index 47c2b424a..c82bc9b01 100644 --- a/amiga/bitmap.c +++ b/amiga/bitmap.c @@ -298,7 +298,10 @@ 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) { - CompositeTags(COMPOSITE_Src,tbm,scaledbm, + uint32 comptype = COMPOSITE_Src; + if(!bitmap->opaque) comptype = COMPOSITE_Src_Over_Dest; + + CompositeTags(comptype,tbm,scaledbm, COMPTAG_ScaleX,COMP_FLOAT_TO_FIX(width/bitmap->width), COMPTAG_ScaleY,COMP_FLOAT_TO_FIX(height/bitmap->height), COMPTAG_Flags,COMPFLAG_IgnoreDestAlpha, |