aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Common/SystemInterop/ForceDpiAware.cs
diff options
context:
space:
mode:
authorMarco Carvalho <marcolucio27@gmail.com>2023-08-13 19:07:57 -0300
committerGitHub <noreply@github.com>2023-08-13 19:07:57 -0300
commit8edfb2bc7b8507d0ef51f0544eb32a65f0bf54a1 (patch)
tree0ec982255ae54fe4572dff777892ac1706857723 /src/Ryujinx.Common/SystemInterop/ForceDpiAware.cs
parentddefb4fff44509ca99628abf010ad6648a6503d5 (diff)
"static readonly" constants should be "const" instead (#5560)1.1.984
* "static readonly" constants should be "const" instead * change fields to PascalCase
Diffstat (limited to 'src/Ryujinx.Common/SystemInterop/ForceDpiAware.cs')
-rw-r--r--src/Ryujinx.Common/SystemInterop/ForceDpiAware.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Ryujinx.Common/SystemInterop/ForceDpiAware.cs b/src/Ryujinx.Common/SystemInterop/ForceDpiAware.cs
index 5fa2281d..3af96ba1 100644
--- a/src/Ryujinx.Common/SystemInterop/ForceDpiAware.cs
+++ b/src/Ryujinx.Common/SystemInterop/ForceDpiAware.cs
@@ -28,8 +28,8 @@ namespace Ryujinx.Common.SystemInterop
[LibraryImport(X11LibraryName)]
private static partial int XCloseDisplay(IntPtr display);
- private static readonly double _standardDpiScale = 96.0;
- private static readonly double _maxScaleFactor = 1.25;
+ private const double StandardDpiScale = 96.0;
+ private const double MaxScaleFactor = 1.25;
/// <summary>
/// Marks the application as DPI-Aware when running on the Windows operating system.
@@ -90,7 +90,7 @@ namespace Ryujinx.Common.SystemInterop
{
double userDpiScale = GetActualScaleFactor();
- return Math.Min(userDpiScale / _standardDpiScale, _maxScaleFactor);
+ return Math.Min(userDpiScale / StandardDpiScale, MaxScaleFactor);
}
}
}