X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_sp%2FDDScrollBuffer.c;fp=src%2Fgame_sp%2FDDScrollBuffer.c;h=d90835b3e50ef804e0d220600cec84b35fea16bd;hb=4145364edf9ddec790b586344f9570145ae39896;hp=6a53fa3082f7910ebda69d0f741efd51dc3c7fca;hpb=4178929e6f42902c237141d811dd61e2acb528cc;p=rocksndiamonds.git diff --git a/src/game_sp/DDScrollBuffer.c b/src/game_sp/DDScrollBuffer.c index 6a53fa30..d90835b3 100644 --- a/src/game_sp/DDScrollBuffer.c +++ b/src/game_sp/DDScrollBuffer.c @@ -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)