mirror of
https://github.com/HarbourMasters/Starship.git
synced 2025-01-23 13:35:11 +03:00
32/9
This commit is contained in:
parent
48aa44f401
commit
94e5d0f5cc
@ -110,7 +110,7 @@ f32 sGroundPositions360z[4] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Declare global variables for screen dimensions
|
// 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
|
float gCurrentScreenHeight = 240.0f * 3; // Default height
|
||||||
|
|
||||||
// Custom floating-point modulo function (replaces fmodf)
|
// Custom floating-point modulo function (replaces fmodf)
|
||||||
@ -229,7 +229,7 @@ void Background_DrawStarfield(void) {
|
|||||||
FrameInterpolation_ShouldInterpolateFrame(false);
|
FrameInterpolation_ShouldInterpolateFrame(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
float originalWidth = currentScreenWidth / 5;
|
float originalWidth = currentScreenWidth / 3;
|
||||||
float originalAspect = originalWidth / (currentScreenHeight / 3);
|
float originalAspect = originalWidth / (currentScreenHeight / 3);
|
||||||
float renderMaskWidth = originalWidth * (OTRGetAspectRatio() / originalAspect);
|
float renderMaskWidth = originalWidth * (OTRGetAspectRatio() / originalAspect);
|
||||||
float marginX = (currentScreenWidth - renderMaskWidth) / 2;
|
float marginX = (currentScreenWidth - renderMaskWidth) / 2;
|
||||||
|
Loading…
Reference in New Issue
Block a user