chiark / gitweb /
Found a bug in nullgame! Its vestigial game_redraw lacked a
authorSimon Tatham <anakin@pobox.com>
Sat, 30 Mar 2013 16:59:17 +0000 (16:59 +0000)
committerSimon Tatham <anakin@pobox.com>
Sat, 30 Mar 2013 16:59:17 +0000 (16:59 +0000)
draw_update, which isn't really setting a good example for people
cloning it :-) Add the missing draw_update call.

[originally from svn r9776]

nullgame.c

index 5a0ba42e69c215a6281e9e7b8dc8954f18078252..4e68bf274922229ae0b963e79b9541bfc74808de 100644 (file)
@@ -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,