http://bugs.winehq.org/show_bug.cgi?id=421
--- Comment #346 from el elton@schiert.net 2010-05-20 14:25:42 --- dufoli: Ellipses that touch the edges of the window are stretched to fit on screen instead of being properly cut off. Ellipses that are not filled do not show up at all. Iji now errors out when playing Hero 3D and during the final bossfight. I suppose this is due to DIBDRV_Ellipse drawing outside of the allowed range. Using my added debug messages in the screenshot you can see it attempts to draw a few pixels at y=600. The window size is 800x600, thus the allowed y-values should range from 0 to 599 I think. http://img63.imageshack.us/img63/5213/improvfail.png
Also: 25% of your patch file is unrelated whitespace madness. Also: You're not supposed to patch configure. autoconf does that for you.
Unrelated to your patch: Something between 1.1.44 and current git has completely broken the engine for me. If winedib is enabled it crashes immediately.