diff options
| author | Simon Tatham <anakin@pobox.com> | 2004-05-11 18:46:36 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2004-05-11 18:46:36 +0000 |
| commit | a03b4b467fe513c3ce868ca7e722fb041324fc6f (patch) | |
| tree | 404332d2b1bd62cb7f08e1aaeffa583e108e4e05 | |
| parent | 8a67b0ed2c246940e2b97e4c85fc65fa694a1d1c (diff) | |
| download | puzzles-a03b4b467fe513c3ce868ca7e722fb041324fc6f.zip puzzles-a03b4b467fe513c3ce868ca7e722fb041324fc6f.tar.gz puzzles-a03b4b467fe513c3ce868ca7e722fb041324fc6f.tar.bz2 puzzles-a03b4b467fe513c3ce868ca7e722fb041324fc6f.tar.xz | |
And I _always_ forget to clear the background when first drawing the
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]
| -rw-r--r-- | nullgame.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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) |