richedit: Fixed bug preventing bold being set with EM_SETCHARFORMAT

Dylan Smith dylan.ah.smith at gmail.com
Mon May 26 09:57:30 CDT 2008


Previously bold needed to be set by setting CFM_WEIGHT in the
CHARFORMAT2 structure, and then setting the appropriate wWeight value.
This approach isn't even supported in Windows XP SP2, and I am not sure
where it is suppported.

Now bold can be set/unset properly for Windows or Wine using CFE_BOLD in
dwEffects and with CFM_BOLD set in the dwMask flag.

This bug could easily be seen in Wine's wordpad by using the bold button
on the toolbar, however wordpad would word when using the native
riched20.dll
---
 dlls/riched20/style.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0013-richedit-Fixed-bug-preventing-bold-being-set-with-EM.diff
Type: text/x-diff
Size: 729 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080526/19d242bf/attachment.diff 


More information about the wine-patches mailing list