From cc8549df68dfe45e2aed861937674f4ecc6f622d Mon Sep 17 00:00:00 2001 From: "Kim F. Storm" Date: Tue, 27 May 2003 23:30:10 +0000 Subject: [PATCH] (expose_window): Fix error in calculation of window relative coordinates of area to redisplay. --- src/xdisp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xdisp.c b/src/xdisp.c index 038d0694bca..6517d07b2ed 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -20283,8 +20283,8 @@ expose_window (w, fr) r.x, r.y, r.width, r.height)); /* Convert to window coordinates. */ - r.x = FRAME_TO_WINDOW_PIXEL_X (w, r.x); - r.y = FRAME_TO_WINDOW_PIXEL_Y (w, r.y); + r.x -= WINDOW_LEFT_EDGE_X (w); + r.y -= WINDOW_TOP_EDGE_Y (w); /* Turn off the cursor. */ if (!w->pseudo_window_p -- 2.39.2