From: Holger Schemel Date: Sun, 17 May 2015 11:53:48 +0000 (+0200) Subject: removed obsolete code X-Git-Tag: 4.0.0.0-rc1~200 X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=commitdiff_plain;h=796d6b9d718fe6b0abc4ef736f5b61eda464f067 removed obsolete code --- diff --git a/src/tools.c b/src/tools.c index 61b4c4cb..4cf1c874 100644 --- a/src/tools.c +++ b/src/tools.c @@ -356,7 +356,6 @@ void DrawMaskedBorder(int redraw_mask) void BlitScreenToBitmap_RND(Bitmap *target_bitmap) { - DrawBuffer *buffer = (drawto_field == window ? backbuffer : drawto_field); int fx = FX, fy = FY; int full_lev_fieldx = lev_fieldx + (BorderElement != EL_EMPTY ? 2 : 0); int full_lev_fieldy = lev_fieldy + (BorderElement != EL_EMPTY ? 2 : 0); @@ -410,7 +409,7 @@ void BlitScreenToBitmap_RND(Bitmap *target_bitmap) fy = 2 * TILEY_VAR - (EVEN(lev_fieldy) ? TILEY_VAR / 2 : 0); } - BlitBitmap(buffer, target_bitmap, fx, fy, SXSIZE, SYSIZE, SX, SY); + BlitBitmap(drawto_field, target_bitmap, fx, fy, SXSIZE, SYSIZE, SX, SY); } void BlitScreenToBitmap(Bitmap *target_bitmap)