]> git.draconx.ca Git - rrace.git/blobdiff - src/x11.c
Clean up redundant/unused declarations.
[rrace.git] / src / x11.c
index 9ded09ea75765c96d6ec8a5731864dcdedfc627b..611223f54b7ba888cafebd6cb547d5f3ba32cc24 100644 (file)
--- a/src/x11.c
+++ b/src/x11.c
@@ -19,6 +19,8 @@
 #include <config.h>
 #include <stdio.h>
 #include <assert.h>
+
+#include <X11/Intrinsic.h>
 #include <Xm/XmStrDefs.h>
 #include "motif.h"
 
@@ -53,7 +55,6 @@ void x11_initialize(struct app_state *state, Screen *screen)
 {
        Display *display = DisplayOfScreen(screen);
        Window root = RootWindowOfScreen(screen);
-       Colormap cmap = DefaultColormapOfScreen(screen);
        XGCValues gcv;
 
        init_colours(state, screen);
@@ -143,7 +144,7 @@ void x11_redraw_game(struct app_state *state)
        w /= 5; h /= 5;
 
        for (i = 0; i < 25; i++) {
-               uint_least32_t *gp = state->board.game+1;
+               uint_least32_t *gp = state->board.game;
 
                redraw_tile(state, display, game,
                            gp[0], gp[1], gp[2],