Dylan Smith : richedit: Get the paragraph with ME_RunOfsFromCharOfs.

Alexandre Julliard julliard at winehq.org
Fri Feb 6 09:56:03 CST 2009


Module: wine
Branch: master
Commit: 12ca50db7a8f60b980cef50d7addaeae010f79c4
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=12ca50db7a8f60b980cef50d7addaeae010f79c4

Author: Dylan Smith <dylan.ah.smith at gmail.com>
Date:   Fri Feb  6 01:09:47 2009 -0500

richedit: Get the paragraph with ME_RunOfsFromCharOfs.

The ME_RunOfsFromCharOfs function finds the paragraph before finding the
run and offset within the run, so the function may as well be able to
return this paragraph to the caller.  Many callers to the function
instead find the paragraph from the run, which ends up unnecessarily
traversing a linked list of runs within the paragraph.

---

 dlls/riched20/editor.c |   55 +++++++++--------------------------------------
 dlls/riched20/editor.h |    4 +-
 dlls/riched20/run.c    |   28 +++++++++++++-----------
 dlls/riched20/writer.c |   14 +++++-------
 4 files changed, 34 insertions(+), 67 deletions(-)

Diff:   http://source.winehq.org/git/wine.git/?a=commitdiff;h=12ca50db7a8f60b980cef50d7addaeae010f79c4



More information about the wine-cvs mailing list