projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f00dbcf
)
removed hardcoding playfield viewport border
author
Holger Schemel
<info@artsoft.org>
Fri, 7 Apr 2023 10:36:08 +0000
(12:36 +0200)
committer
Holger Schemel
<info@artsoft.org>
Fri, 7 Apr 2023 10:36:08 +0000
(12:36 +0200)
src/game_mm/mm_tools.c
patch
|
blob
|
history
diff --git
a/src/game_mm/mm_tools.c
b/src/game_mm/mm_tools.c
index 15b540aa290ece08381c2773cd51def6e74fcb8c..38ff743113684fb28e05a05ac88f20f01aeb7c46 100644
(file)
--- 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)
{