Dylan Smith : richedit: Account for selection bar in calculating available width.
Alexandre Julliard
julliard at winehq.org
Mon Oct 13 06:39:22 CDT 2008
Module: wine
Branch: master
Commit: a32f1f2c1c434c31436941414fead711223b926d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=a32f1f2c1c434c31436941414fead711223b926d
Author: Dylan Smith <dylan.ah.smith at gmail.com>
Date: Fri Oct 10 17:50:40 2008 -0400
richedit: Account for selection bar in calculating available width.
---
dlls/riched20/wrap.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/riched20/wrap.c b/dlls/riched20/wrap.c
index d6a2492..e03f398 100644
--- a/dlls/riched20/wrap.c
+++ b/dlls/riched20/wrap.c
@@ -75,7 +75,8 @@ static void ME_BeginRow(ME_WrapContext *wc, ME_DisplayItem *para)
- (wc->nRow ? wc->nLeftMargin : wc->nFirstMargin) - wc->nRightMargin;
} else if (wc->context->editor->bWordWrap) {
wc->nAvailWidth = wc->context->rcView.right - wc->context->rcView.left
- - (wc->nRow ? wc->nLeftMargin : wc->nFirstMargin) - wc->nRightMargin;
+ - (wc->nRow ? wc->nLeftMargin : wc->nFirstMargin) - wc->nRightMargin
+ - wc->context->editor->selofs;
} else {
wc->nAvailWidth = ~0u >> 1;
}
More information about the wine-cvs
mailing list