mrjt Messages: 705 Registered: March 2007 Location: London
Contributor
To be honest it doesn't make much difference to me now since I know about the problem . But IMO ImageDraw should behave in exactly the same way on both platforms, it's annoying to write code that works on Win32 but not X11.
IMO the ideal solution would be to have it undefined in Win32 too. But if you think that is a bad idea for backwards-compatability reasons then yes, ImageDraw::alpha should be initialized to 0. Perhaps this could be done on the first call to Alpha() so there is no additional overhead for none-alpha situations?