shithub: puzzles

Download patch

ref: fffeae956a0080866c824a68638813dfc9a8bfd1
parent: 8f46f437a7726521822d513662f512eb2e54ff34
author: Ben Harris <bjh21@bjh21.me.uk>
date: Sun Nov 13 12:56:53 EST 2022

nullgame: Don't bother blanking the puzzle window

This is now centralised in the mid-end.

--- a/nullgame.c
+++ b/nullgame.c
@@ -220,14 +220,6 @@
                         int dir, const 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(dr, 0, 0, 10*ds->tilesize, 10*ds->tilesize, COL_BACKGROUND);
-    draw_update(dr, 0, 0, 10*ds->tilesize, 10*ds->tilesize);
 }
 
 static float game_anim_length(const game_state *oldstate,