aboutsummaryrefslogtreecommitdiff
path: root/nullgame.c
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2013-03-30 16:59:17 +0000
committerSimon Tatham <anakin@pobox.com>2013-03-30 16:59:17 +0000
commitd11691ec4a2faab20ad57cb668865289fe60a3b4 (patch)
treebe10a2255f5d293c3ca6d2d3ed8366876b1afc8a /nullgame.c
parentb5756838f326db5c579d2413599bb9a1c77e6f42 (diff)
downloadpuzzles-d11691ec4a2faab20ad57cb668865289fe60a3b4.zip
puzzles-d11691ec4a2faab20ad57cb668865289fe60a3b4.tar.gz
puzzles-d11691ec4a2faab20ad57cb668865289fe60a3b4.tar.bz2
puzzles-d11691ec4a2faab20ad57cb668865289fe60a3b4.tar.xz
Found a bug in nullgame! Its vestigial game_redraw lacked a
draw_update, which isn't really setting a good example for people cloning it :-) Add the missing draw_update call. [originally from svn r9776]
Diffstat (limited to 'nullgame.c')
-rw-r--r--nullgame.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/nullgame.c b/nullgame.c
index 5a0ba42..4e68bf2 100644
--- a/nullgame.c
+++ b/nullgame.c
@@ -224,6 +224,7 @@ static void game_redraw(drawing *dr, game_drawstate *ds, game_state *oldstate,
* 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(game_state *oldstate, game_state *newstate,