- XDrawPoint (dpy, window, gc, rock->x, rock->y);
- else if (rock->size <= 3 || !draw_p)
- XFillRectangle (dpy, window, gc,
- rock->x - rock->size/2, rock->y - rock->size/2,
- rock->size, rock->size);
- else if (rock->size < MAX_WIDTH)
- XCopyPlane (dpy, pixmaps [rock->size], window, gc,
- 0, 0, rock->size, rock->size,
- rock->x - rock->size/2, rock->y - rock->size/2,
- 1);
- else
- abort ();
+ {
+ if (threed)
+ {
+ if (draw_p) gc = threed_left_gc;
+ XDrawPoint (dpy, window, gc, rock->x - rock->diff, rock->y);
+ if (draw_p) gc = threed_right_gc;
+ XDrawPoint (dpy, window, gc, rock->x + rock->diff, rock->y);
+ }
+ else
+ {
+ XDrawPoint (dpy, window, gc, rock->x, rock->y);
+ }
+ }
+ else if (rock->size <= MIN_SIZE || !draw_p)
+ {
+ if (threed)
+ {
+ if (draw_p) gc = threed_left_gc;
+ XFillRectangle(dpy, window, gc,
+ rock->x - rock->size / 2 - rock->diff,
+ rock->y - rock->size / 2,
+ rock->size, rock->size);
+ if (draw_p) gc = threed_right_gc;
+ XFillRectangle(dpy, window, gc,
+ rock->x - rock->size / 2 + rock->diff,
+ rock->y - rock->size / 2,
+ rock->size, rock->size);
+ }
+ else
+ {
+ XFillRectangle (dpy, window, gc,
+ rock->x - rock->size/2, rock->y - rock->size/2,
+ rock->size, rock->size);
+ }
+ }
+ else if (rock->size < MAX_SIZE)
+ {
+ if (threed)
+ {
+ gc = threed_left_gc;
+ XCopyPlane(dpy, pixmaps[rock->size], window, gc,
+ 0, 0, rock->size, rock->size,
+ rock->x - rock->size / 2 - rock->diff,
+ rock->y - rock->size / 2, 1L);
+ gc = threed_right_gc;
+ XCopyPlane(dpy, pixmaps[rock->size], window, gc,
+ 0, 0, rock->size, rock->size,
+ rock->x - rock->size / 2 + rock->diff,
+ rock->y - rock->size / 2, 1L);
+ }
+ else
+ {
+ XCopyPlane (dpy, pixmaps [rock->size], window, gc,
+ 0, 0, rock->size, rock->size,
+ rock->x - rock->size/2, rock->y - rock->size/2,
+ 1L);
+ }
+ }