X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fcartoons.c;h=8aee8a261633890fb2640692db382286a762df41;hb=7b31a77eec53ed2b96d5924a743b0706c9e4b11c;hp=a295844ff733f9febfcf6fab182ea0c0b5e734b0;hpb=b7d31643c9c84104fb3ebef778e545928610ff65;p=rocksndiamonds.git diff --git a/src/cartoons.c b/src/cartoons.c index a295844f..8aee8a26 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) @@ -449,7 +461,7 @@ BOOL AnimateToon(int toon_nr, BOOL restart) pos_y >= FULL_SYSIZE + anim->stepsize) return(TRUE); - if (!DelayReached(&anim_delay,anim_delay_value)) + if (!DelayReached(&anim_delay, anim_delay_value)) { if (game_status==HELPSCREEN && !restart) DrawAnim(anim_pixmap,anim_clip_gc,