Module: wine
Branch: master
Commit: 297716e01ca8c58f2ed400da1437b02fb420448a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=297716e01ca8c58f2ed400da1…
Author: Dylan Smith <dylan.ah.smith(a)gmail.com>
Date: Thu Dec 18 01:56:49 2008 -0500
richedit: Made sure text is offset by formatting rectangle.
The formatting rectangle is set with EM_SETRECT, and retrieved with
EM_GETRECT, so it corresponds to rcFormat in the code. This defines the
area that the richedit control should draw the text so that it is
offset by the top-left corner of the formatting rectangle, and clipped
so that it doesn't draw past the bottom or right hand side. Thus this
is important for implementing windowless richedit controls to not
interfere with the rest of the window.
---
dlls/riched20/caret.c | 17 +++---
dlls/riched20/editor.c | 135 ++++++++++++++++++++++++++++++++++-------
dlls/riched20/editstr.h | 4 +-
dlls/riched20/paint.c | 103 +++++++++++++++++++-------------
dlls/riched20/run.c | 2 +-
dlls/riched20/tests/editor.c | 33 ++++------
dlls/riched20/wrap.c | 24 ++++----
7 files changed, 211 insertions(+), 107 deletions(-)
Diff: http://source.winehq.org/git/wine.git/?a=commitdiff;h=297716e01ca8c58f2ed40…
Module: wine
Branch: master
Commit: 62db58545eb70016ecd7ae2cd63072b866331cc1
URL: http://source.winehq.org/git/wine.git/?a=commit;h=62db58545eb70016ecd7ae2cd…
Author: Dylan Smith <dylan.ah.smith(a)gmail.com>
Date: Thu Dec 18 01:56:32 2008 -0500
richedit: Fixed ITextHostImpl return values for tests.
There were several methods that do not have a HRESULT for a return
value, so returning E_NOTIMPL is not appropriate. For all the BOOL
return values FALSE was returned to indicate the operation was not
performed.
---
dlls/riched20/tests/txtsrv.c | 114 +++++++++++++++++++++---------------------
1 files changed, 57 insertions(+), 57 deletions(-)
Diff: http://source.winehq.org/git/wine.git/?a=commitdiff;h=62db58545eb70016ecd7a…