aboutsummaryrefslogtreecommitdiff
path: root/rect.c
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2005-05-30 07:55:27 +0000
committerSimon Tatham <anakin@pobox.com>2005-05-30 07:55:27 +0000
commit0f423f0b3a0bfaaac37fa2dba23794629088836f (patch)
treed2bcaf42d70fa6d6dcff84413f84f17a123d92c9 /rect.c
parent8fa365a7b4c3f044ab6daa96a707051f091d6296 (diff)
downloadpuzzles-0f423f0b3a0bfaaac37fa2dba23794629088836f.zip
puzzles-0f423f0b3a0bfaaac37fa2dba23794629088836f.tar.gz
puzzles-0f423f0b3a0bfaaac37fa2dba23794629088836f.tar.bz2
puzzles-0f423f0b3a0bfaaac37fa2dba23794629088836f.tar.xz
Infrastructure change: game_anim_length and game_flash_length now
both get passed a pointer to the game_ui. This means that if they need to note down information for the redraw function about what _type_ of flash or animation is required, they now have somewhere to do so. [originally from svn r5858]
Diffstat (limited to 'rect.c')
-rw-r--r--rect.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rect.c b/rect.c
index 12d14b9..4a88d3b 100644
--- a/rect.c
+++ b/rect.c
@@ -2496,13 +2496,13 @@ static void game_redraw(frontend *fe, game_drawstate *ds, game_state *oldstate,
}
static float game_anim_length(game_state *oldstate,
- game_state *newstate, int dir)
+ game_state *newstate, int dir, game_ui *ui)
{
return 0.0F;
}
static float game_flash_length(game_state *oldstate,
- game_state *newstate, int dir)
+ game_state *newstate, int dir, game_ui *ui)
{
if (!oldstate->completed && newstate->completed &&
!oldstate->cheated && !newstate->cheated)