X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/puzzles/blobdiff_plain/0eb3b8994cbfa8c784121e6e49edad0e510d86e5..8b629657bab226e6a0f91d4f147d448b4c84be2f:/midend.c diff --git a/midend.c b/midend.c index 4d729e3..779ca0c 100644 --- a/midend.c +++ b/midend.c @@ -740,6 +740,17 @@ void midend_redraw(midend *me) } } +/* + * Nasty hacky function used to implement the --redo option in + * gtk.c. Only used for generating the puzzles' icons. + */ +void midend_freeze_timer(midend *me, float tprop) +{ + me->anim_pos = me->anim_time * tprop; + midend_redraw(me); + deactivate_timer(me->frontend); +} + void midend_timer(midend *me, float tplus) { int need_redraw = (me->anim_time > 0 || me->flash_time > 0);