changeset 56150:52798bcd26d1

* xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from clip_x/y_origin.
author Jan Djärv <jan.h.d@swipnet.se>
date Thu, 17 Jun 2004 19:35:00 +0000
parents 0e86f3e9a45d
children 9ef25bd8db0d
files src/ChangeLog src/xterm.c
diffstat 2 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Thu Jun 17 17:16:36 2004 +0000
+++ b/src/ChangeLog	Thu Jun 17 19:35:00 2004 +0000
@@ -1,5 +1,8 @@
 2004-06-17  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>
 
+	* xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
+	clip_x/y_origin.
+
 	* fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
 
 	* macfns.c (Fx_display_color_cells): Do not limit return value to 256.
--- a/src/xterm.c	Thu Jun 17 17:16:36 2004 +0000
+++ b/src/xterm.c	Thu Jun 17 19:35:00 2004 +0000
@@ -2357,8 +2357,8 @@
 	  XGCValues xgcv;
 
 	  xgcv.clip_mask = s->img->mask;
-	  xgcv.clip_x_origin = x;
-	  xgcv.clip_y_origin = y;
+	  xgcv.clip_x_origin = x - s->slice.x;
+	  xgcv.clip_y_origin = y - s->slice.y;
 	  xgcv.function = GXcopy;
 	  XChangeGC (s->display, s->gc, mask, &xgcv);