View Single Post
Old 15 August 2015, 10:27   #2
bernd roesch
Registered User
 
Join Date: Apr 2012
Location: germany
Posts: 130
Have you test if it work with 24 bit icons ?. that it work without afa is because old AOS use this function not. This is the code AOS 3.5 icons are blit
It use this code to blit OS3.5 icons. maybe tony have idea wy this code work ok on uaegfx but fail on winuae picasso 4 or picollo z3. AFA is test on old amiga with cgx and P96, from Thomas Klein. in the past he know not such a problem. but he test when he have time on his old amiga, what happen here with your files

Code:
bm = AllocBitMap
                        (
                            nativeicon->icon35.width,
                            nativeicon->icon35.height,
                            GetBitMapAttr(rp->BitMap, BMA_DEPTH) , BMF_MINPLANES , rp->BitMap          //new
                        );

			if (bm)
			{
		    	    struct RastPort bmrp;

			    InitRastPort(&bmrp);
			    bmrp.BitMap = bm;

			    WriteLUTPixelArray
                            (
                                img->imagedata,
                                0, 0,
                                nativeicon->icon35.width,
                                &bmrp, cgfxcoltab,
                                0, 0,
                                nativeicon->icon35.width,
                                nativeicon->icon35.height,
                                CTABFMT_XRGB8
                            );


			    BltMaskBitMapRastPort
                            (
                                bm, 0, 0, rp, leftEdge, topEdge,
                                nativeicon->icon35.width,
                                nativeicon->icon35.height,
                                0xC0, img->mask
                            );
bernd roesch is offline  
 
Page generated in 0.04370 seconds with 11 queries