Dylan Smith : richedit: Actually store end of line string for end paragraph runs.
Alexandre Julliard
julliard at winehq.org
Wed Jan 28 08:03:08 CST 2009
Module: wine
Branch: master
Commit: 5d74f5838266e81a969f97cf389f6369c5bc46c6
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5d74f5838266e81a969f97cf389f6369c5bc46c6
Author: Dylan Smith <dylan.ah.smith at gmail.com>
Date: Wed Jan 28 01:34:56 2009 -0500
richedit: Actually store end of line string for end paragraph runs.
Previously a count of the carraige returns and line feeds were stored
for end of paragraph runs, and a paragraph sign was stored as the actual
string. This was causing many special cases where the length of the
run needed to be determined differently if the run was or wasn't an
end of paragraph run.
There wasn't any use for storing the paragraph sign unless some drawing
code gets commented out to allow the end paragraphs to be shown,
therefore I changed the code to store the actual string that gets
retrieved by WM_GETTEXT.
---
dlls/riched20/caret.c | 35 +++++++++++----------
dlls/riched20/editor.c | 69 +++++++++++++----------------------------
dlls/riched20/editor.h | 2 +-
dlls/riched20/editstr.h | 3 +-
dlls/riched20/list.c | 6 +--
dlls/riched20/paint.c | 1 -
dlls/riched20/para.c | 32 ++++++++-----------
dlls/riched20/run.c | 8 +----
dlls/riched20/string.c | 1 +
dlls/riched20/table.c | 21 ++++++++-----
dlls/riched20/undo.c | 6 +--
dlls/riched20/writer.c | 58 ++++++++--------------------------
dlls/riched32/tests/editor.c | 13 ++++++--
13 files changed, 101 insertions(+), 154 deletions(-)
Diff: http://source.winehq.org/git/wine.git/?a=commitdiff;h=5d74f5838266e81a969f97cf389f6369c5bc46c6
More information about the wine-cvs
mailing list