#include "help.h"
#include "motif.h"
#include "options.h"
+#include "game.h"
#define PROGNAME "rrace"
static const char *progname = PROGNAME;
PROGNAME "*game.XmFrame.shadowThickness: 3",
PROGNAME "*game.XmFrame.shadowType: shadow_in",
PROGNAME "*goalArea.leftOffset: 1",
+ PROGNAME "*gameCanvas.background: #404040",
NULL
};
static XtAppContext app_initialize(int argc, char **argv)
{
+ static struct app_state state;
XtAppContext app;
Widget shell;
progname = argv[0];
shell = early_setup(&app, argc, argv);
- ui_initialize(shell);
+ ui_initialize(&state, shell);
+ x11_initialize(&state, XtScreen(shell));
+ game_reset(&state.board);
XtRealizeWidget(shell);
return app;