aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx/Program.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx/Program.cs')
-rw-r--r--Ryujinx/Program.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/Ryujinx/Program.cs b/Ryujinx/Program.cs
index c6d3b1bd..5d50e9d2 100644
--- a/Ryujinx/Program.cs
+++ b/Ryujinx/Program.cs
@@ -18,12 +18,14 @@ namespace Ryujinx
{
class Program
{
+ public static double WindowScaleFactor { get; private set; }
+
public static string Version { get; private set; }
public static string ConfigurationPath { get; set; }
static void Main(string[] args)
- {
+ {
// Parse Arguments.
string launchPathArg = null;
string baseDirPathArg = null;
@@ -54,6 +56,10 @@ namespace Ryujinx
}
}
+ // Make process DPI aware for proper window sizing on high-res screens.
+ ForceDpiAware.Windows();
+ WindowScaleFactor = ForceDpiAware.GetWindowScaleFactor();
+
// Delete backup files after updating.
Task.Run(Updater.CleanupUpdate);