X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_sp%2FDDScrollBuffer.c;h=d90835b3e50ef804e0d220600cec84b35fea16bd;hb=bfe3ef29da6539dffdd8674a67c3144f6a3cdddc;hp=6a53fa3082f7910ebda69d0f741efd51dc3c7fca;hpb=8e3612567b52232c0f1dff593546cb90b396911c;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)