mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-10-02 17:08:55 +02:00
misc: chore: Merge into pattern
This commit is contained in:
@@ -57,7 +57,7 @@ namespace Ryujinx.Common.SystemInterop
|
||||
{
|
||||
string xdgSessionType = Environment.GetEnvironmentVariable("XDG_SESSION_TYPE")?.ToLower();
|
||||
|
||||
if (xdgSessionType == null || xdgSessionType == "x11")
|
||||
if (xdgSessionType is null or "x11")
|
||||
{
|
||||
IntPtr display = XOpenDisplay(null);
|
||||
string dpiString = Marshal.PtrToStringAnsi(XGetDefault(display, "Xft", "dpi"));
|
||||
|
||||
Reference in New Issue
Block a user