+#if 1
+
+
+#if 1
+
+ SetClipMask(sprBitmap, sprBitmap->stored_clip_gc, spriteBitmap);
+
+ SetClipOrigin(sprBitmap, sprBitmap->stored_clip_gc, x, y);
+ BlitBitmapMasked(sprBitmap, screenBitmap,
+ (spr / 8) * TILEX, (spr % 8) * TILEY, TILEX, TILEY,
+ x, y);
+
+ SetClipOrigin(sprBitmap, sprBitmap->stored_clip_gc,
+ x - MAX_BUF_XSIZE * TILEX, y);
+ BlitBitmapMasked(sprBitmap, screenBitmap,
+ (spr / 8) * TILEX, (spr % 8) * TILEY, TILEX, TILEY,
+ x - MAX_BUF_XSIZE * TILEX, y);
+
+ SetClipOrigin(sprBitmap, sprBitmap->stored_clip_gc,
+ x, y - MAX_BUF_YSIZE * TILEY);
+ BlitBitmapMasked(sprBitmap, screenBitmap,
+ (spr / 8) * TILEX, (spr % 8) * TILEY, TILEX, TILEY,
+ x, y - MAX_BUF_YSIZE * TILEY);
+
+ SetClipMask(sprBitmap, sprBitmap->stored_clip_gc, None);
+
+#else
+
+ XSetClipMask(display, sprBitmap->stored_clip_gc, spriteBitmap);
+
+ XSetClipOrigin(display, sprBitmap->stored_clip_gc, x, y);
+ XCopyArea(display, sprBitmap->drawable, screenBitmap->drawable,
+ sprBitmap->stored_clip_gc,
+ (spr / 8) * TILEX, (spr % 8) * TILEY, TILEX, TILEY,
+ x, y);
+
+ XSetClipOrigin(display, sprBitmap->stored_clip_gc,
+ x - MAX_BUF_XSIZE * TILEX, y);
+ XCopyArea(display, sprBitmap->drawable, screenBitmap->drawable,
+ sprBitmap->stored_clip_gc,
+ (spr / 8) * TILEX, (spr % 8) * TILEY, TILEX, TILEY,
+ x - MAX_BUF_XSIZE * TILEX, y);
+
+ XSetClipOrigin(display, sprBitmap->stored_clip_gc,
+ x, y - MAX_BUF_YSIZE * TILEY);
+ XCopyArea(display, sprBitmap->drawable, screenBitmap->drawable,
+ sprBitmap->stored_clip_gc,
+ (spr / 8) * TILEX, (spr % 8) * TILEY, TILEX, TILEY,
+ x, y - MAX_BUF_YSIZE * TILEY);
+
+ XSetClipMask(display, sprBitmap->stored_clip_gc, None);
+
+#endif
+
+#else
+