summaryrefslogtreecommitdiff
path: root/src/engine/fox_bg.c
diff options
context:
space:
mode:
authorSonic Dreamcaster <alejandro.asenjo88@gmail.com>2024-12-09 22:29:35 -0300
committerSonic Dreamcaster <alejandro.asenjo88@gmail.com>2024-12-09 22:29:35 -0300
commit94e5d0f5cc09800bc248bd08c4335a442d0ec00f (patch)
treedc288ea9fd835254865efaf9431ef2dd7d0bddc6 /src/engine/fox_bg.c
parent48aa44f4010a39c35bd9d4e7d3642659b425b65f (diff)
32/9
Diffstat (limited to 'src/engine/fox_bg.c')
-rw-r--r--src/engine/fox_bg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/engine/fox_bg.c b/src/engine/fox_bg.c
index 4510be1b..0aef18ee 100644
--- a/src/engine/fox_bg.c
+++ b/src/engine/fox_bg.c
@@ -110,7 +110,7 @@ f32 sGroundPositions360z[4] = {
};
// Declare global variables for screen dimensions
-float gCurrentScreenWidth = 320.0f * 5; // Default width
+float gCurrentScreenWidth = 320.0f * 3; // Default width
float gCurrentScreenHeight = 240.0f * 3; // Default height
// Custom floating-point modulo function (replaces fmodf)
@@ -229,7 +229,7 @@ void Background_DrawStarfield(void) {
FrameInterpolation_ShouldInterpolateFrame(false);
}
- float originalWidth = currentScreenWidth / 5;
+ float originalWidth = currentScreenWidth / 3;
float originalAspect = originalWidth / (currentScreenHeight / 3);
float renderMaskWidth = originalWidth * (OTRGetAspectRatio() / originalAspect);
float marginX = (currentScreenWidth - renderMaskWidth) / 2;