/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* pacman --- Mr. Pacman and his ghost friends */
-#if !defined( lint ) && !defined( SABER )
+#if 0
static const char sccsid[] = "@(#)pacman.c 5.00 2000/11/01 xlockmore";
-
#endif
/*-
# include "images/pacman/pacman-ds8.xpm"
#endif
+#if 0
static const struct
{
int dx, dy;
{ 0, 1},
{ 1, 0},
{ 0, -1}};
+#endif
#ifdef DISABLE_INTERACTIVE
ENTRYPOINT ModeSpecOpt pacman_opts = {
if (pp->ys % 2 == 1)
dy = -1;
-#ifndef HAVE_COCOA
+#ifndef HAVE_JWXYZ
XSetFillStyle (display, pp->stippledGC, FillSolid);
-#endif /* !HAVE_COCOA */
+#endif /* !HAVE_JWXYZ */
XSetLineAttributes (display, pp->stippledGC, pp->wallwidth,
LineSolid, CapRound, JoinMiter);
Display *display = MI_DISPLAY (mi);
Window window = MI_WINDOW (mi);
pacmangamestruct *pp = &pacman_games[MI_SCREEN (mi)];
- unsigned int dir;
pp->pacman.cf = pp->pacman.col * pp->xs + pp->pacman.delta.x *
pp->pacman.cfactor + pp->xb + pp->spritedx;
pp->pacman.rf = pp->pacman.row * pp->ys + pp->pacman.delta.y *
pp->pacman.rfactor + pp->yb + pp->spritedy;
- dir = (ABS (pp->pacman.cfactor) * (2 - pp->pacman.cfactor) +
- ABS (pp->pacman.rfactor) * (1 + pp->pacman.rfactor)) % 4;
-
XSetForeground (display, pp->stippledGC, MI_BLACK_PIXEL (mi));
if (pp->pacman.oldcf != NOWHERE && pp->pacman.oldrf != NOWHERE) {
end = dheight * yscale;
/* Scale height of temp into dest pixmap */
for (i = 0; i <= end; i += yscale)
- XCopyArea (*dpy, temp, dest, gc, 0, i, swidth, 1, 0, j++);
+ XCopyArea (*dpy, temp, dest, gc, 0, i, dwidth, 1, 0, j++);
XFreePixmap (*dpy, temp);
return (Pixmap) dest;
{
Display *display = MI_DISPLAY (mi);
Window window = MI_WINDOW (mi);
- int size = MI_SIZE (mi);
+ long size = MI_SIZE (mi);
pacmangamestruct *pp;
XGCValues gcv;
int i, j, k;
}
}
-#ifdef HAVE_COCOA
+#ifdef HAVE_JWXYZ
jwxyz_XSetAntiAliasing (display, pp->stippledGC, False);
#endif