removed hardcoding playfield viewport border
authorHolger Schemel <info@artsoft.org>
Fri, 7 Apr 2023 10:36:08 +0000 (12:36 +0200)
committerHolger Schemel <info@artsoft.org>
Fri, 7 Apr 2023 10:36:08 +0000 (12:36 +0200)
src/game_mm/mm_tools.c

index 15b540aa290ece08381c2773cd51def6e74fcb8c..38ff743113684fb28e05a05ac88f20f01aeb7c46 100644 (file)
@@ -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)
   {