Module: wine
Branch: master
Commit: 32dcd3bbe1064b6012fc01541716c88588eaa7bb
URL: http://source.winehq.org/git/wine.git/?a=commit;h=32dcd3bbe1064b6012fc01541…
Author: Dylan Smith <dylan.ah.smith(a)gmail.com>
Date: Wed Aug 12 09:06:00 2009 -0400
richedit: Created functions to move between runs and track paragraphs.
Plenty of places in the code find following or preceding runs, then
afterwards find the paragraph from the run. This is inefficient because
the same linked list is used for both runs and paragraphs, so changes in
paragraphs can be detected while returning the next or previous run.
---
dlls/riched20/caret.c | 35 +++++++++++++++++++----------------
dlls/riched20/editor.c | 21 ++++++++-------------
dlls/riched20/editor.h | 2 ++
dlls/riched20/list.c | 41 +++++++++++++++++++++++++++++++++++++++++
dlls/riched20/table.c | 11 ++++++++---
dlls/riched20/writer.c | 2 +-
6 files changed, 79 insertions(+), 33 deletions(-)
Diff: http://source.winehq.org/git/wine.git/?a=commitdiff;h=32dcd3bbe1064b6012fc0…
Module: wine
Branch: master
Commit: 82e102107c8a03566032f15f1f4d173c0850a9aa
URL: http://source.winehq.org/git/wine.git/?a=commit;h=82e102107c8a03566032f15f1…
Author: Dylan Smith <dylan.ah.smith(a)gmail.com>
Date: Wed Aug 12 09:05:51 2009 -0400
richedit: ME_GetTextW must use source and destination lengths.
Before a single length was used for the number of characters to retrieve
from the text, and to keep track of the size of the buffer. These are
not equivalent, since there is a possible end of line conversion.
---
dlls/riched20/clipboard.c | 16 ++++-
dlls/riched20/editor.c | 160 +++++++++++++++++++++++----------------------
dlls/riched20/editor.h | 4 +-
dlls/riched20/editstr.h | 1 +
dlls/riched20/table.c | 4 +-
dlls/riched20/txtsrv.c | 4 +-
6 files changed, 101 insertions(+), 88 deletions(-)
Diff: http://source.winehq.org/git/wine.git/?a=commitdiff;h=82e102107c8a03566032f…
Module: wine
Branch: master
Commit: 46b84aed4a27883984613a6dac7e6f35a2981778
URL: http://source.winehq.org/git/wine.git/?a=commit;h=46b84aed4a27883984613a6da…
Author: Dylan Smith <dylan.ah.smith(a)gmail.com>
Date: Wed Aug 12 09:05:46 2009 -0400
richedit: Added function to get selection cursors in order.
Previously the only convenient way to get the start and end of the
selection was through offsets, which eventually need to get converted
back into items in the linked list storing the text. The new function
will help with eliminating these inefficiencies.
---
dlls/riched20/caret.c | 43 ++++++++++++++++++++++++-------------------
dlls/riched20/editor.c | 47 ++++++++++++++++++++++-------------------------
dlls/riched20/editor.h | 3 ++-
dlls/riched20/paint.c | 6 +++---
dlls/riched20/richole.c | 2 +-
dlls/riched20/run.c | 4 ++--
dlls/riched20/style.c | 13 ++++++-------
dlls/riched20/writer.c | 2 +-
8 files changed, 61 insertions(+), 59 deletions(-)
Diff: http://source.winehq.org/git/wine.git/?a=commitdiff;h=46b84aed4a27883984613…