changeset 51273:948b9733818b

(expose_window): Fix error in calculation of window relative coordinates of area to redisplay.
author Kim F. Storm <storm@cua.dk>
date Tue, 27 May 2003 23:30:10 +0000
parents 59870655e8c9
children 78a8be5d896c
files src/xdisp.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Tue May 27 23:29:50 2003 +0000
+++ b/src/xdisp.c	Tue May 27 23:30:10 2003 +0000
@@ -20283,8 +20283,8 @@
 	      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