Am Sonntag, 7. Mai 2006 11:06 schrieb H. Verbeet:
There might be more to this. This was changed the other way around not too long ago. See http://source.winehq.org/git/?p=wine.git;a=commit;h=252c4adb965a26db19c1c91 61c40a82b488cb6d4
If I'm not mistaken, then this patch was mainly to correct issues with WINED3DFMT_R5G6B5. Looks like changing WINED3DFMT_R8G8B8 too was wrong.
It might just be that the glDrawPixels call should've been changed instead last time. (Shouldn't those simply use the format in This->glDescription.glFormat in the first place?)
The UnlockRect code calling glDrawpixels is a bit odd, and I think it should be changed to use the surface's glDescription instead. It needs some other fixes too