]> git.draconx.ca Git - rrace.git/blobdiff - src/motif_ui.c
motif: State structure cleanup
[rrace.git] / src / motif_ui.c
index 5941834c86ae8b7bcba3ef35290615e5a068ccc0..c6500311a8264017fd638490e44bd84cffd02cd1 100644 (file)
@@ -275,15 +275,8 @@ void ui_initialize(struct app_state *state, Widget shell)
 
        configure_mainwin(state, XtNameToWidget(shell, "*game"));
 
-       XtVaGetValues(state->game, XmNwidth, &state->game_sz[0],
-                                  XmNheight, &state->game_sz[1],
-                                  (char *)NULL);
        XtAddCallback(state->game, XmNresizeCallback, resize, state);
        XtAddCallback(state->game, XmNexposeCallback, expose, state);
-
-       XtVaGetValues(state->game, XmNwidth, &state->goal_sz[0],
-                                  XmNheight, &state->goal_sz[1],
-                                  (char *)NULL);
        XtAddCallback(state->goal, XmNresizeCallback, resize, state);
        XtAddCallback(state->goal, XmNexposeCallback, expose, state);
 }