From f0033c44c7972e5122d1db2eacc7abce7d96c602 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Tue, 24 Dec 2019 18:47:27 +0000 Subject: [PATCH] Use full window resolution on Windows. --- OpenRA.Game/Settings.cs | 3 --- OpenRA.Platforms.Default/Sdl2PlatformWindow.cs | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/OpenRA.Game/Settings.cs b/OpenRA.Game/Settings.cs index d5f58b7817..a4c7a167c2 100644 --- a/OpenRA.Game/Settings.cs +++ b/OpenRA.Game/Settings.cs @@ -163,9 +163,6 @@ namespace OpenRA [Desc("At which frames per second to cap the framerate.")] public int MaxFramerate = 60; - [Desc("Disable high resolution DPI scaling on Windows operating systems.")] - public bool DisableWindowsDPIScaling = true; - [Desc("Disable separate OpenGL render thread on Windows operating systems.")] public bool DisableWindowsRenderThread = true; diff --git a/OpenRA.Platforms.Default/Sdl2PlatformWindow.cs b/OpenRA.Platforms.Default/Sdl2PlatformWindow.cs index 51100432c9..576afd2a3d 100644 --- a/OpenRA.Platforms.Default/Sdl2PlatformWindow.cs +++ b/OpenRA.Platforms.Default/Sdl2PlatformWindow.cs @@ -81,7 +81,7 @@ namespace OpenRA.Platforms.Default windowSize = requestWindowSize; // Disable legacy scaling on Windows - if (Platform.CurrentPlatform == PlatformType.Windows && !Game.Settings.Graphics.DisableWindowsDPIScaling) + if (Platform.CurrentPlatform == PlatformType.Windows) SetProcessDPIAware(); SDL.SDL_Init(SDL.SDL_INIT_NOPARACHUTE | SDL.SDL_INIT_VIDEO); @@ -173,7 +173,7 @@ namespace OpenRA.Platforms.Default else if (Platform.CurrentPlatform == PlatformType.Windows) { float ddpi, hdpi, vdpi; - if (!Game.Settings.Graphics.DisableWindowsDPIScaling && SDL.SDL_GetDisplayDPI(0, out ddpi, out hdpi, out vdpi) == 0) + if (SDL.SDL_GetDisplayDPI(0, out ddpi, out hdpi, out vdpi) == 0) { windowScale = ddpi / 96; windowSize = new Size((int)(surfaceSize.Width / windowScale), (int)(surfaceSize.Height / windowScale));