richedit: Removed useless code.
This commit is contained in:
parent
7b5561cbb8
commit
6f11b1b354
|
@ -43,8 +43,7 @@ void ME_PaintContent(ME_TextEditor *editor, HDC hDC, BOOL bOnlyNew, const RECT *
|
||||||
{
|
{
|
||||||
BOOL bPaint = (rcUpdate == NULL);
|
BOOL bPaint = (rcUpdate == NULL);
|
||||||
if (rcUpdate)
|
if (rcUpdate)
|
||||||
bPaint = c.pt.y<rcUpdate->bottom &&
|
bPaint = c.pt.y<rcUpdate->bottom && ye>rcUpdate->top;
|
||||||
c.pt.y+item->member.para.nHeight>rcUpdate->top;
|
|
||||||
if (bPaint)
|
if (bPaint)
|
||||||
{
|
{
|
||||||
ME_DrawParagraph(&c, item);
|
ME_DrawParagraph(&c, item);
|
||||||
|
@ -85,8 +84,6 @@ void ME_PaintContent(ME_TextEditor *editor, HDC hDC, BOOL bOnlyNew, const RECT *
|
||||||
rc.bottom = ye;
|
rc.bottom = ye;
|
||||||
FillRect(hDC, &rc, c.editor->hbrBackground);
|
FillRect(hDC, &rc, c.editor->hbrBackground);
|
||||||
}
|
}
|
||||||
if (ys == c.pt.y) /* don't overwrite the top bar */
|
|
||||||
ys++;
|
|
||||||
}
|
}
|
||||||
if (editor->nTotalLength != editor->nLastTotalLength)
|
if (editor->nTotalLength != editor->nLastTotalLength)
|
||||||
ME_SendRequestResize(editor, FALSE);
|
ME_SendRequestResize(editor, FALSE);
|
||||||
|
|
|
@ -473,8 +473,6 @@ BOOL ME_WrapMarkedParagraphs(ME_TextEditor *editor) {
|
||||||
int yStart = -1;
|
int yStart = -1;
|
||||||
|
|
||||||
ME_InitContext(&c, editor, GetDC(editor->hWnd));
|
ME_InitContext(&c, editor, GetDC(editor->hWnd));
|
||||||
c.pt.x = 0;
|
|
||||||
c.pt.y = 0;
|
|
||||||
editor->nHeight = 0;
|
editor->nHeight = 0;
|
||||||
item = editor->pBuffer->pFirst->next;
|
item = editor->pBuffer->pFirst->next;
|
||||||
while(item != editor->pBuffer->pLast) {
|
while(item != editor->pBuffer->pLast) {
|
||||||
|
|
Loading…
Reference in New Issue