richedit: Some minor fixes for wrapping.
Dylan Smith
dylan.ah.smith at gmail.com
Fri Jun 20 17:03:15 CDT 2008
Consecutive tabs now get broken up into separate lines when they need
to be wrapped, instead of being ignored at the end.
The first line of a paragraph with whitespace, and the first causing a
wordwrap will get wrapped properly. Previously this type of line would
never get wrapped no matter how long it is.
The end of paragraph run should never overflow into a line by itself.
The above changes are for consistency with native richedit controls.
Removed some redundant lines. Lines in ME_WrapHandleRun were removed
because ME_CalcRunExtent is already called unconditionally just before
it in the call to ME_WrapSizeRun. Lines in ME_WrapTextParagraph were
removed because they do the same thing as the call to ME_BeginRow that
follows these lines.
---
dlls/riched20/wrap.c | 34 +++++++++++++++++++---------------
1 files changed, 19 insertions(+), 15 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0046-richedit-Some-minor-fixes-for-wrapping.diff
Type: text/x-diff
Size: 2611 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080620/f31b11c4/attachment-0001.diff
More information about the wine-patches
mailing list