Increased the minimum width for the game launch screen.

This commit is contained in:
Leon Styhre 2021-06-15 21:15:37 +02:00
parent f52df33356
commit 1653206b76

View file

@ -101,7 +101,7 @@ void GuiLaunchScreen::displayLaunchScreen(FileData* game)
float aspectValue = 1.778f / Renderer::getScreenAspectRatio(); float aspectValue = 1.778f / Renderer::getScreenAspectRatio();
float maxWidthModifier = Math::clamp(0.78f * aspectValue, 0.78f, 0.90f); float maxWidthModifier = Math::clamp(0.78f * aspectValue, 0.78f, 0.90f);
float minWidthModifier = Math::clamp(0.40f * aspectValue, 0.40f, 0.56f); float minWidthModifier = Math::clamp(0.50f * aspectValue, 0.50f, 0.65f);
float maxWidth = static_cast<float>(Renderer::getScreenWidth()) * maxWidthModifier; float maxWidth = static_cast<float>(Renderer::getScreenWidth()) * maxWidthModifier;
float minWidth = static_cast<float>(Renderer::getScreenWidth()) * minWidthModifier; float minWidth = static_cast<float>(Renderer::getScreenWidth()) * minWidthModifier;