Dylan Smith : richedit: Get the paragraph with ME_RunOfsFromCharOfs.
Module: wine Branch: master Commit: 12ca50db7a8f60b980cef50d7addaeae010f79c4 URL: http://source.winehq.org/git/wine.git/?a=commit;h=12ca50db7a8f60b980cef50d7a... Author: Dylan Smith <dylan.ah.smith(a)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=12ca50db7a8f60b980cef5...
participants (1)
-
Alexandre Julliard