Bottom edge of the update region should be relative to the top edge of

the format rect.
This commit is contained in:
Lauri Tulmin 2005-06-09 20:40:31 +00:00 committed by Alexandre Julliard
parent ff23e5a916
commit 24c73fd4a0
1 changed files with 1 additions and 0 deletions

View File

@ -1282,6 +1282,7 @@ static void EDIT_BuildLineDefs_ML(EDITSTATE *es, INT istart, INT iend, INT delta
rc.bottom = line_count * es->line_height;
else
rc.bottom = line_index * es->line_height;
rc.bottom += es->format_rect.top;
rc.bottom -= (es->y_offset * es->line_height); /* Adjust for vertical scrollbar */
tmphrgn = CreateRectRgn(rc.left, rc.top, rc.right, rc.bottom);
CombineRgn(hrgn, hrgn, tmphrgn, RGN_OR);