chiark
/
gitweb
/
~ian
/
sgt-puzzles.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a67b0e
)
And I _always_ forget to clear the background when first drawing the
author
Simon Tatham
<anakin@pobox.com>
Tue, 11 May 2004 18:46:36 +0000
(18:46 +0000)
committer
Simon Tatham
<anakin@pobox.com>
Tue, 11 May 2004 18:46:36 +0000
(18:46 +0000)
display of a new game, so I'll add it to nullgame.c and hope that
makes me remember it next time!
[originally from svn r4213]
nullgame.c
patch
|
blob
|
history
diff --git
a/nullgame.c
b/nullgame.c
index b4b94feb0ecc42d552c4ee7064104fbb06aaed87..32e6e2c7f75192252b36ee93b98eb5269c457d5f 100644
(file)
--- a/
nullgame.c
+++ b/
nullgame.c
@@
-164,6
+164,13
@@
void game_redraw(frontend *fe, game_drawstate *ds, game_state *oldstate,
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)