small code cleanup of screen redraw functions (SP)
[rocksndiamonds.git] / src / game_sp / DDScrollBuffer.c
index 6a53fa3082f7910ebda69d0f741efd51dc3c7fca..d90835b3e50ef804e0d220600cec84b35fea16bd 100644 (file)
@@ -197,10 +197,10 @@ void UpdatePlayfield(boolean force_redraw)
 #endif
 }
 
-/* copy the entire screen to the window at the scroll position */
-
 void BlitScreenToBitmap_SP(Bitmap *target_bitmap)
 {
+  /* copy playfield buffer to target bitmap at scroll position */
+
   int px = 2 * TILEX + (mScrollX - mScrollX_last) % TILEX;
   int py = 2 * TILEY + (mScrollY - mScrollY_last) % TILEY;
   int sx, sy, sxsize, sysize;
@@ -230,11 +230,6 @@ void BlitScreenToBitmap_SP(Bitmap *target_bitmap)
   BlitBitmap(bitmap_db_field_sp, target_bitmap, px, py, sxsize, sysize, sx, sy);
 }
 
-void BackToFront_SP(void)
-{
-  BlitScreenToBitmap_SP(window);
-}
-
 void DDScrollBuffer_ScrollTo(int X, int Y)
 {
   if (NoDisplayFlag)