gdiplus: do not draw line-breaking spaces

Vincent Povirk vincent at codeweavers.com
Fri Jul 24 16:27:31 CDT 2009


When text (say, "Hello world") is broken by GdipDrawString into two lines, gdiplus draws the first line with a trailing space ("Hello " and "world"). This is wrong when the text is centered or right-aligned. With this patch, we no longer draw the trailing space, and the first line is aligned properly.

This makes the testcase on bug 14244 look better and more like Windows.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20090724/022b48f0/attachment.htm>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0002-gdiplus-do-not-draw-line-breaking-spaces.txt
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20090724/022b48f0/attachment.txt>


More information about the wine-patches mailing list