From 24c73fd4a0e70e2a55330aeaad92b0009de714f5 Mon Sep 17 00:00:00 2001 From: Lauri Tulmin Date: Thu, 9 Jun 2005 20:40:31 +0000 Subject: [PATCH] Bottom edge of the update region should be relative to the top edge of the format rect. --- dlls/user/edit.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/user/edit.c b/dlls/user/edit.c index 1f7ecbbe84..e9973b65fe 100644 --- a/dlls/user/edit.c +++ b/dlls/user/edit.c @@ -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); -- 2.32.0.93.g670b81a890