Re: wined3d: Set alpha channel to 0 for pixels with color key
On 16 November 2010 12:46, Ilya Shpigor <shpigor(a)etersoft.ru> wrote:
Hello,
This is patch for bug: http://bugs.winehq.org/show_bug.cgi?id=23750
Current DirectDraw implementation doesn't process color key correctly. I have add manually pixels color checking on surface loading because don't able to find GL function to do this.
This patch is wrong. Color key processing happens mostly in d3dfmt_convert_surface(), you should try to figure out why it isn't happening for this application. Some more general points are that perform_color_key() would need to be static, casting void pointer is redundant, the color key is a range, not a single value, and try to use consistent formatting.
On Tuesday 16 November 2010 15:11:41 Henri Verbeet wrote:
This patch is wrong. Color key processing happens mostly in d3dfmt_convert_surface(), you should try to figure out why it isn't happening for this application. Some more general points are that perform_color_key() would need to be static, casting void pointer is redundant, the color key is a range, not a single value, and try to use consistent formatting.
Thanks for reply. I will try to fix it. -- Best regards, Ilya Shpigor.
participants (2)
-
Henri Verbeet -
Ilya Shpigor