From 796d6b9d718fe6b0abc4ef736f5b61eda464f067 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Sun, 17 May 2015 13:53:48 +0200 Subject: [PATCH] removed obsolete code --- src/tools.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) -- 2.34.1