http://bugs.winehq.org/show_bug.cgi?id=421
--- Comment #314 from el elton@schiert.net 2010-02-09 19:34:56 --- Created an attachment (id=26167) --> (http://bugs.winehq.org/attachment.cgi?id=26167) Fix missing lines in polygons
After investing way too much time into this I have found a possible solution to the issue of missing horizontal lines. It seems to me that the current algorithm may miscount the intersections if a polygon vertex is directly on the current scanline. I propose the attached patch on top of your current engine to fix this.
However this does not fix polygons completely. If you look very closely on the following screenshot you can see that some of the polygons are missing a few single pixels on their right hand side. I currently have no idea why this happens. http://img17.imageshack.us/img17/8979/ijifixedlines.png
Btw: Looks like the first patch in the series is broken (again). If you ever resume your work on the DIB engine it would be nice if you had a git repository that we could track.