From: Holger Schemel Date: Fri, 7 Apr 2023 10:36:08 +0000 (+0200) Subject: removed hardcoding playfield viewport border X-Git-Tag: 4.3.6.0~45 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=a35cd1278be43a50b102a573a61400f2d8e78503;p=rocksndiamonds.git removed hardcoding playfield viewport border --- diff --git a/src/game_mm/mm_tools.c b/src/game_mm/mm_tools.c index 15b540aa..38ff7431 100644 --- a/src/game_mm/mm_tools.c +++ b/src/game_mm/mm_tools.c @@ -29,8 +29,8 @@ void SetDrawtoField_MM(int mode) // for convenience, absolute screen position to centered level playfield cSX = SX + dSX; cSY = SY + dSY; - cSX2 = SX + dSX + 2; // including playfield border - cSY2 = SY + dSY + 2; // including playfield border + cSX2 = SX + dSX + (SX - REAL_SX); // including playfield border + cSY2 = SY + dSY + (SY - REAL_SY); // including playfield border if (mode == DRAW_TO_BACKBUFFER) {