#include "config.h"
#include "xlockmoreI.h"
+#if defined(HAVE_GDK_PIXBUF) || defined(HAVE_XPM)
+#define USE_PIXMAP
+#include "xpm-pixmap.h"
+#else
+#if defined(USE_PIXMAP)
+#undef USE_PIXMAP
+#endif
+#endif
+
#define LEVHEIGHT 32U
#define LEVWIDTH 40U
#define SNB(v, n) ((v) |= (1 << (n)))
#define UNSNB(v, n) ((v) &= ~(1 << (n)))
#define GHOSTS 4U
+#if defined(USE_PIXMAP)
+#define MAXMOUTH 3
+#else
#define MAXMOUTH 11
+#endif
#define MAXGPOS 2
#define MAXGDIR 4
#define MAXGWAG 2
ghoststruct *ghosts;
unsigned int nghosts;
Pixmap pacmanPixmap[4][MAXMOUTH];
-/* Pixmap ghostPixmap[4][MAXGPOS];*/
-/* Pixmap ghostPixmap; */
+ Pixmap pacmanMask[4][MAXMOUTH];
Pixmap ghostPixmap[4][MAXGDIR][MAXGWAG];
-/* Pixmap ghostMask[4][MAXGDIR][MAXGWAG]; */
Pixmap ghostMask;
char level[LEVHEIGHT * LEVWIDTH];
unsigned int wallwidth;