* xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
authorJan Djärv <jan.h.d@swipnet.se>
Thu, 17 Jun 2004 19:35:00 +0000 (19:35 +0000)
committerJan Djärv <jan.h.d@swipnet.se>
Thu, 17 Jun 2004 19:35:00 +0000 (19:35 +0000)
  clip_x/y_origin.

src/ChangeLog
src/xterm.c

index 298e2a5..2c1db97 100644 (file)
@@ -1,5 +1,8 @@
 2004-06-17  Jan Dj\e,Ad\e(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.
index c7b0c2f..d4a285f 100644 (file)
@@ -2357,8 +2357,8 @@ x_draw_image_foreground_1 (s, pixmap)
          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);