Use full window resolution on Windows.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user