X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fcartoons.c;h=b1b31921c03f0f1cc01131a9160a9fe4a77f447d;hb=1256664ceac31f448a0139edd3bd0dc8fa5a8697;hp=a295844ff733f9febfcf6fab182ea0c0b5e734b0;hpb=b7d31643c9c84104fb3ebef778e545928610ff65;p=rocksndiamonds.git diff --git a/src/cartoons.c b/src/cartoons.c index a295844f..b1b31921 100644 --- a/src/cartoons.c +++ b/src/cartoons.c @@ -125,18 +125,30 @@ void HandleAnimation(int mode) reset_delay = TRUE; /* Fill empty backbuffer for animation functions */ - if (direct_draw_on && game_status==PLAYING) + if (direct_draw_on && game_status == PLAYING) { int xx,yy; - drawto_field = backbuffer; + SetDrawtoField(DRAW_BACKBUFFER); for(xx=0;xxdirection & (ANIMDIR_LEFT | ANIMDIR_RIGHT)); vert_move = (anim->direction & (ANIMDIR_UP | ANIMDIR_DOWN)); - anim_delay_value = 100/anim->frames_per_second; + anim_delay_value = 1000/anim->frames_per_second; frame = 0; if (horiz_move)