View Single Post
Old 31 August 2014, 10:53   #25
thomas
Registered User
 
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 7,021
C files upated.

Maybe you could add a flag to the PNGFObject (and possibly an attribute for pngfGetAttr) which indicates that the loaded files did not have an alpha channel. Then, if the draw functions see this flag, they should revert to immediately call WritePixelArray resp. copy the data into the array without alpha blending. Perhaps the load routine can be so intelligent to set this flag also if there is an alpha channel but it is completely solid (i.e. all pixels are $ff).
Attached Files
File Type: lha pngflux_c.lha (4.8 KB, 178 views)
thomas is online now  
 
Page generated in 0.04462 seconds with 12 queries