[PATCH 1/2] gdi32: Improve glyph positioning for the subpixel case in get_glyph_outline.
Sam Edwards
cfsworks at gmail.com
Wed May 1 10:54:32 CDT 2013
It turns out, the cause for the crashes on my other patch was the glyph
positioning logic for subpixel-rendered glyphs. When y_shift was
negative, the destination pointer was decremented(!) outside of the
buffer and wrecked the stack.
The new logic in this patch allows negative shifts, and instead moves
the source pointer appropriately. This makes sure that the glyph is
blitted in the proper position even when it's too big for the
destination buffer (which is the case when clipping the glyph to the
font metrics).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-gdi32-Improve-glyph-positioning-for-the-subpixel-cas.patch
Type: text/x-patch
Size: 2471 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20130501/6f737d2a/attachment.bin>
More information about the wine-patches
mailing list