]> git.draconx.ca Git - rrace.git/blobdiff - src/motif.h
motif: Avoid constantly recalculating tile size.
[rrace.git] / src / motif.h
index 361abd98b12690807dff01e59e1166e794625e41..a008306f5bb44f69eaf63120674c333677341c58 100644 (file)
@@ -26,7 +26,9 @@
 struct app_state {
        struct board board;
 
-       Widget game, goal, timer;
+       Widget game, goal;
+
+       struct xcounter *timer;
 
        /* Current window width/height for resize handling. */
        Dimension game_sz[2], goal_sz[2];
@@ -35,8 +37,10 @@ struct app_state {
 
        XtIntervalId render_tick;
        XtWorkProcId render_proc;
-       uint_fast32_t render_game_mask;
-       uint_fast16_t render_goal_mask;
+
+       uint_least32_t render_game_mask;
+       uint_least16_t render_goal_mask;
+       uint_least16_t game_tile_sz, goal_tile_sz;
 
        /* If true, the goal will be displayed over the main play area. */
        int view_goal_on_game;