Compare commits

..

1 Commits

Author SHA1 Message Date
DeaTh-G 12f2e6a42a implement fix for potential window size crash 2026-02-03 17:53:29 +01:00
3 changed files with 10 additions and 5 deletions
+1 -1
View File
@@ -460,7 +460,7 @@ The team behind Unleashed Recompiled does not currently have any plans to port m
- [Goalringmod27](https://linktr.ee/goalringmod27): Concept Artist behind the achievements overlay shown during gameplay. Aided in the creation of the Transparency Anti-Aliasing thumbnail.
- [RagdollClash](https://github.com/RagdollClash): Provisional support for dynamic UI aspect ratio.
- [M&M](https://github.com/ActualMandM): Provisional support for dynamic UI aspect ratio.
- [DaGuAr](https://twitter.com/TheDaguar): Provided Spanish localization for the custom menus alongside Darío.
+1 -1
View File
@@ -15,7 +15,7 @@ inline std::array<const char*, 17> g_credits =
"LJSTAR",
"saguinee",
"Goalringmod27",
"RagdollClash",
"M&M",
"DaGuAr",
"brianuuuSonic",
"Kitzuku"
+8 -3
View File
@@ -1255,9 +1255,14 @@ static void DrawConfigOptions()
case 3: // VIDEO
{
DrawConfigOption(rowCount++, yOffset, &Config::WindowSize,
!Config::Fullscreen, &Localise("Options_Desc_NotAvailableFullscreen"),
0, 0, (int32_t)GameWindow::GetDisplayModes().size() - 1, false);
auto displayModeCount = (int32_t)GameWindow::GetDisplayModes().size();
auto canChangeWindowSize = !Config::Fullscreen && displayModeCount > 1;
auto windowSizeReason = &Localise("Options_Desc_NotAvailableFullscreen");
if (!Config::Fullscreen && displayModeCount <= 1)
windowSizeReason = &Localise("Options_Desc_NotAvailableHardware");
DrawConfigOption(rowCount++, yOffset, &Config::WindowSize, canChangeWindowSize, windowSizeReason, 0, 0, displayModeCount - 1, false);
auto displayCount = GameWindow::GetDisplayCount();
auto canChangeMonitor = Config::Fullscreen && displayCount > 1;