Re: [AD] FLIC playback could yield CPU |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On 2005-05-22, Grzegorz Adam Hankiewicz <gradha@xxxxxxxxxx> wrote:
> Index: src/fli.c
> ===================================================================
> RCS file: /cvsroot/alleg/allegro/src/fli.c,v
> retrieving revision 1.16
> diff -u -p -r1.16 fli.c
> --- src/fli.c 28 Apr 2005 08:53:37 -0000 1.16
> +++ src/fli.c 22 May 2005 13:21:28 -0000
> @@ -870,9 +870,10 @@ static int do_play_fli(BITMAP *bmp, int
>
> ret = next_fli_frame(loop);
>
> - do {
> + while (fli_timer <= 0) {
> /* wait a bit */
> - } while (fli_timer <= 0);
> + rest(0);
> + };
Good idea. Drop that semicolon though.
Peter