Module: wine Branch: master Commit: 6f11b1b354f6637f2cc730941e2daa04edb3c8bb URL: http://source.winehq.org/git/wine.git/?a=commit;h=6f11b1b354f6637f2cc730941e...
Author: Dylan Smith dylan.ah.smith@gmail.com Date: Fri May 2 17:00:24 2008 -0400
richedit: Removed useless code.
---
dlls/riched20/paint.c | 5 +---- dlls/riched20/wrap.c | 2 -- 2 files changed, 1 insertions(+), 6 deletions(-)
diff --git a/dlls/riched20/paint.c b/dlls/riched20/paint.c index 2ec7fb9..91b71dc 100644 --- a/dlls/riched20/paint.c +++ b/dlls/riched20/paint.c @@ -43,8 +43,7 @@ void ME_PaintContent(ME_TextEditor *editor, HDC hDC, BOOL bOnlyNew, const RECT * { BOOL bPaint = (rcUpdate == NULL); if (rcUpdate) - bPaint = c.pt.y<rcUpdate->bottom && - c.pt.y+item->member.para.nHeight>rcUpdate->top; + bPaint = c.pt.y<rcUpdate->bottom && ye>rcUpdate->top; if (bPaint) { ME_DrawParagraph(&c, item); @@ -85,8 +84,6 @@ void ME_PaintContent(ME_TextEditor *editor, HDC hDC, BOOL bOnlyNew, const RECT * rc.bottom = ye; FillRect(hDC, &rc, c.editor->hbrBackground); } - if (ys == c.pt.y) /* don't overwrite the top bar */ - ys++; } if (editor->nTotalLength != editor->nLastTotalLength) ME_SendRequestResize(editor, FALSE); diff --git a/dlls/riched20/wrap.c b/dlls/riched20/wrap.c index 4767074..da5fef7 100644 --- a/dlls/riched20/wrap.c +++ b/dlls/riched20/wrap.c @@ -473,8 +473,6 @@ BOOL ME_WrapMarkedParagraphs(ME_TextEditor *editor) { int yStart = -1;
ME_InitContext(&c, editor, GetDC(editor->hWnd)); - c.pt.x = 0; - c.pt.y = 0; editor->nHeight = 0; item = editor->pBuffer->pFirst->next; while(item != editor->pBuffer->pLast) {