mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 16:05:44 -07:00
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]
This commit is contained in:
@ -164,6 +164,13 @@ void game_redraw(frontend *fe, game_drawstate *ds, game_state *oldstate,
|
|||||||
game_state *state, game_ui *ui,
|
game_state *state, game_ui *ui,
|
||||||
float animtime, float flashtime)
|
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)
|
float game_anim_length(game_state *oldstate, game_state *newstate)
|
||||||
|
Reference in New Issue
Block a user