rnd-19980813-1
[rocksndiamonds.git] / src / cartoons.c
index a295844ff733f9febfcf6fab182ea0c0b5e734b0..1c193f6f689ae3b334210ee8ed3c04b27530df27 100644 (file)
@@ -129,22 +129,27 @@ void HandleAnimation(int mode)
       {
        int xx,yy;
 
-       drawto_field = backbuffer;
+       SetDrawtoField(DRAW_BACKBUFFER);
 
        for(xx=0;xx<SCR_FIELDX;xx++)
          for(yy=0;yy<SCR_FIELDY;yy++)
            DrawScreenField(xx,yy);
        DrawPlayerField();
 
-       drawto_field = window;
+       SetDrawtoField(DRAW_DIRECT);
       }
 
+      if (soft_scrolling_on && game_status==PLAYING)
+       XCopyArea(display,fieldbuffer,backbuffer,gc,
+                 FX,FY, SXSIZE,SYSIZE,
+                 SX,SY);
+
       return;
       break;
     case ANIM_CONTINUE:
       break;
     case ANIM_STOP:
-      redraw_mask |= REDRAW_FIELD;
+      redraw_mask |= (REDRAW_FIELD | REDRAW_FROM_BACKBUFFER);
 
       /* Redraw background even when in direct drawing mode */
       draw_mode = direct_draw_on;