X-Git-Url: https://git.draconx.ca/gitweb/rrace.git/blobdiff_plain/2529a9651d160ab3a17118d778f5e5584d040765..44fbf97825db6918cc7f4e31189f689ba7270128:/src/x11.c diff --git a/src/x11.c b/src/x11.c index 3b12bd3..94a0619 100644 --- a/src/x11.c +++ b/src/x11.c @@ -19,18 +19,20 @@ #include #include #include + +#include #include #include "motif.h" /* TODO user-selectable colours */ static const char * const colours[][3] = { /*primary bottom top */ - "#fa2e2e", "#c02323", "#ff3939", /* red */ - "#ff8c00", "#c46c00", "#ffa400", /* orange */ - "#ffd700", "#c4a500", "#ffed00", /* yellow */ - "#228b22", "#186318", "#27a027", /* green */ - "#4682b4", "#325c80", "#4c8dc3", /* blue */ - "#faf0e6", "#b2aaa3", "#fff9ee", /* white */ + "#8d2e28", "#6a1b17", "#a14842", /* red */ + "#b46e28", "#924a16", "#c7904f", /* orange */ + "#d8b740", "#c59f39", "#e2c65d", /* yellow */ + "#286428", "#194719", "#4e874e", /* green */ + "#003471", "#001f4f", "#00528b", /* blue */ + "#dcdcdc", "#c0c0c0", "#eaeaea", /* white */ }; static void init_colours(struct app_state *state, Screen *screen) @@ -143,7 +145,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],