http://bugs.winehq.org/show_bug.cgi?id=22952
Dylan Smith dylan.ah.smith@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #28455|0 |1 is obsolete| |
--- Comment #13 from Dylan Smith dylan.ah.smith@gmail.com 2010-06-06 13:50:50 --- Created an attachment (id=28610) --> (http://bugs.winehq.org/attachment.cgi?id=28610) richedit: Keep default char format on WM_SETFONT in plain text mode.
Babas Chess actually uses plain text mode.
In plain text mode the character format should only be changed by changing the default character format, because otherwise a call to EM_SETCHARFORMAT using SCF_DEFAULT will unsuccessfully change the character format which is what caused the regression bug.
In this case the control was empty, so there was only the end of text run that could have its format change, which my earlier commit allowed.
This seems to be the right way to fix the bug, so I'll submit this patch to wine-patches.