Force 16:9 in windowed mode and remove 4k option

This commit is contained in:
baz 2024-04-04 23:33:02 +01:00
parent 9cdb60ac81
commit ab85d8990b
1 changed files with 2 additions and 4 deletions

View File

@ -135,7 +135,8 @@ void UOptionsUIWidget::ResetToDefaultsButtonOnClicked()
void UOptionsUIWidget::OnResolutionSelectorChanged() void UOptionsUIWidget::OnResolutionSelectorChanged()
{ {
FIntPoint screenResolution = GEngine->GameUserSettings->GetDesktopResolution(); FIntPoint screenResolution = GEngine->GameUserSettings->GetDesktopResolution();
float widthScale = static_cast<float>(screenResolution.X) / static_cast<float>(screenResolution.Y); //float widthScale = static_cast<float>(screenResolution.X) / static_cast<float>(screenResolution.Y);
float widthScale = static_cast<float>(1920) / static_cast<float>(1080);
switch (GEngine->GameUserSettings->GetScreenResolution().Y) switch (GEngine->GameUserSettings->GetScreenResolution().Y)
{ {
@ -146,9 +147,6 @@ void UOptionsUIWidget::OnResolutionSelectorChanged()
screenResolution.Y = 1440; screenResolution.Y = 1440;
break; break;
case 1440: case 1440:
screenResolution.Y = 2160;
break;
case 2160:
screenResolution.Y = 720; screenResolution.Y = 720;
break; break;
default: default: