mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-10-04 23:01:05 +02:00
Avalonia: fix HiDPI/Retina scaling for embedded window on macOS.
This commit is contained in:
@@ -42,6 +42,9 @@ namespace Ryujinx.UI.Common.Helper
|
||||
[return: MarshalAs(UnmanagedType.Bool)]
|
||||
private static partial bool bool_objc_msgSend(nint receiver, Selector selector, nint param);
|
||||
|
||||
[LibraryImport(ObjCRuntime, EntryPoint = "objc_msgSend")]
|
||||
private static partial double double_objc_msgSend(nint receiver, Selector selector);
|
||||
|
||||
public readonly struct Object
|
||||
{
|
||||
public readonly nint ObjPtr;
|
||||
@@ -105,6 +108,11 @@ namespace Ryujinx.UI.Common.Helper
|
||||
{
|
||||
return bool_objc_msgSend(ObjPtr, selector, obj.ObjPtr);
|
||||
}
|
||||
|
||||
public double GetDoubleFromMessage(string selectorName)
|
||||
{
|
||||
return double_objc_msgSend(ObjPtr, selectorName);
|
||||
}
|
||||
}
|
||||
|
||||
public readonly struct Selector
|
||||
|
||||
Reference in New Issue
Block a user