Flash on completion. Two people actually complained! :-)
[sgt/puzzles] / nullgame.c
index 8df09e9..32e6e2c 100644 (file)
@@ -109,7 +109,16 @@ void free_game(game_state *state)
     sfree(state);
 }
 
-game_state *make_move(game_state *from, int x, int y, int button)
+game_ui *new_ui(game_state *state)
+{
+    return NULL;
+}
+
+void free_ui(game_ui *ui)
+{
+}
+
+game_state *make_move(game_state *from, game_ui *ui, int x, int y, int button)
 {
     return NULL;
 }
@@ -152,8 +161,16 @@ void game_free_drawstate(game_drawstate *ds)
 }
 
 void game_redraw(frontend *fe, game_drawstate *ds, game_state *oldstate,
-                 game_state *state, float animtime, float flashtime)
-{
+                 game_state *state, game_ui *ui,
+                 float animtime, float flashtime)
+{
+    /*
+     * The initial contents of the window are not guaranteed and
+     * can vary with front ends. To be on the safe side, all games
+     * should start by drawing a big background-colour rectangle
+     * covering the whole window.
+     */
+    draw_rect(fe, 0, 0, 200, 200, COL_BACKGROUND);
 }
 
 float game_anim_length(game_state *oldstate, game_state *newstate)