From a4248b13e2a4541ddf278f8617d2ce727507713e Mon Sep 17 00:00:00 2001 From: Clownacy Date: Thu, 23 May 2019 14:15:30 +0000 Subject: [PATCH] Fix broken stage centring --- src/Frame.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Frame.cpp b/src/Frame.cpp index bf36440b..42b62038 100644 --- a/src/Frame.cpp +++ b/src/Frame.cpp @@ -41,7 +41,7 @@ void MoveFrame3() // Widescreen/tallscreen-safe behaviour if (map_w * 0x10 < WINDOW_WIDTH) { - gFrame.x = -((WINDOW_WIDTH - map_w * 0x10) * 0x200 / 2); + gFrame.x = -(((WINDOW_WIDTH - map_w * 0x10) * 0x200) / 2); } else { @@ -56,7 +56,7 @@ void MoveFrame3() if (map_l * 0x10 < WINDOW_HEIGHT) { - gFrame.y = -((WINDOW_HEIGHT - map_l * 0x10) * 0x200 / 2); + gFrame.y = -(((WINDOW_HEIGHT - map_l * 0x10) * 0x200) / 2); } else { @@ -148,7 +148,7 @@ void SetFramePosition(int fx, int fy) // Widescreen/tallscreen-safe behaviour if (map_w * 0x10 < WINDOW_WIDTH) { - gFrame.x = -((WINDOW_WIDTH - map_w * 0x10) * 0x200 / 2); + gFrame.x = -(((WINDOW_WIDTH - map_w * 0x10) * 0x200) / 2); } else { @@ -161,7 +161,7 @@ void SetFramePosition(int fx, int fy) if (map_l * 0x10 < WINDOW_HEIGHT) { - gFrame.y = -((WINDOW_HEIGHT - map_l * 0x10) * 0x200 / 2); + gFrame.y = -(((WINDOW_HEIGHT - map_l * 0x10) * 0x200) / 2); } else { @@ -221,7 +221,7 @@ void SetFrameMyChar() // Widescreen/tallscreen-safe behaviour if (map_w * 0x10 < WINDOW_WIDTH) { - gFrame.x = -((WINDOW_WIDTH - map_w * 0x10) * 0x200 / 2); + gFrame.x = -(((WINDOW_WIDTH - map_w * 0x10) * 0x200) / 2); } else { @@ -234,7 +234,7 @@ void SetFrameMyChar() if (map_l * 0x10 < WINDOW_HEIGHT) { - gFrame.y = -((WINDOW_HEIGHT - map_l * 0x10) * 0x200 / 2); + gFrame.y = -(((WINDOW_HEIGHT - map_l * 0x10) * 0x200) / 2); } else {