]> git.eshelyaron.com Git - emacs.git/commitdiff
(expose_window): Fix error in calculation of
authorKim F. Storm <storm@cua.dk>
Tue, 27 May 2003 23:30:10 +0000 (23:30 +0000)
committerKim F. Storm <storm@cua.dk>
Tue, 27 May 2003 23:30:10 +0000 (23:30 +0000)
window relative coordinates of area to redisplay.

src/xdisp.c

index 038d0694bca8ebd7f103eb9b8b1079df93940a5a..6517d07b2ed4a8b67bf65bffc6685afeb93cab47 100644 (file)
@@ -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