[1/3] richedit: Tabs are now highlighted and underlined.
dylan.ah.smith at gmail.com
Thu Jul 10 17:26:56 CDT 2008
Tab characters previously were just skipped when it came to the drawing
phase, which prevented them from being highlighted and underlined. This
patch fixes this issue.
In order to do this I needed the width of the space for the
ME_DrawTextWithStyle function, so I turned the width parameter from a
out to an in parameter, since it was never used to get the width.
I also needed to set the distance of the tab, since it is drawn with a
space, whereas a tab might insert some other symbol. The lpDx parameter
sets the distance between each character, but tabs are always stored in
a run by themselves anyways, so I only needed to handle single
dlls/riched20/paint.c | 89 ++++++++++++++++++++++++++++++++++--------------
1 files changed, 63 insertions(+), 26 deletions(-)
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
More information about the wine-patches