From ab85d8990bf80bfd7cf1c103f1fec2d1bbb49a15 Mon Sep 17 00:00:00 2001 From: baz Date: Thu, 4 Apr 2024 23:33:02 +0100 Subject: [PATCH] Force 16:9 in windowed mode and remove 4k option --- Source/Nakatomi/OptionsUIWidget.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Source/Nakatomi/OptionsUIWidget.cpp b/Source/Nakatomi/OptionsUIWidget.cpp index 25ebcd9..78061b5 100644 --- a/Source/Nakatomi/OptionsUIWidget.cpp +++ b/Source/Nakatomi/OptionsUIWidget.cpp @@ -135,7 +135,8 @@ void UOptionsUIWidget::ResetToDefaultsButtonOnClicked() void UOptionsUIWidget::OnResolutionSelectorChanged() { FIntPoint screenResolution = GEngine->GameUserSettings->GetDesktopResolution(); - float widthScale = static_cast(screenResolution.X) / static_cast(screenResolution.Y); + //float widthScale = static_cast(screenResolution.X) / static_cast(screenResolution.Y); + float widthScale = static_cast(1920) / static_cast(1080); switch (GEngine->GameUserSettings->GetScreenResolution().Y) { @@ -146,9 +147,6 @@ void UOptionsUIWidget::OnResolutionSelectorChanged() screenResolution.Y = 1440; break; case 1440: - screenResolution.Y = 2160; - break; - case 2160: screenResolution.Y = 720; break; default: