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).
|