usp10: Bug 17324 change default glyph returned from 0xffff to 0

Jeff Latimer lats at yless4u.com.au
Thu Mar 11 06:51:19 CST 2010


This patch fixes bug 17324 http://bugs.winehq.org/show_bug.cgi?id=17324
The problem is that ScriptShape convert characters to glyphs and there 
is no translation for '\r'.  ScriptTextOut is called and 
X11DRV_XRender_ExtTextOut is called eventually.  The glyph is used as an 
index into an array but as the glyph value is 0xffff it causes an exception.

This patch converts the NONEXISTING_GLYPHS to 0 (this is the same 
behaviour as Windows).
---
  dlls/usp10/tests/usp10.c |   78 
++++++++++++++++++++++++++++++++++++++++++++++
  dlls/usp10/usp10.c       |    1 +
  2 files changed, 79 insertions(+), 0 deletions(-)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0016-usp10-Bug-17324-change-default-glyph-returned-from-0.patch
Type: text/x-patch
Size: 4606 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20100311/6074ce6a/attachment.bin>


More information about the wine-patches mailing list