Skip to content

Commit

Permalink
32/9
Browse files Browse the repository at this point in the history
  • Loading branch information
sonicdcer committed Dec 10, 2024
1 parent 48aa44f commit 94e5d0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/engine/fox_bg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 94e5d0f

Please sign in to comment.