Refactor widowing on macOS to support screen scale and highDpi mode

This commit is contained in:
Wojtek Figat
2023-03-12 10:58:55 +01:00
parent 9fe54dc02c
commit 2c70b74814
5 changed files with 103 additions and 19 deletions

View File

@@ -11,6 +11,9 @@
/// </summary>
class FLAXENGINE_API MacPlatform : public UnixPlatform
{
public:
static float ScreenScale;
public:
// [UnixPlatform]
@@ -82,6 +85,7 @@ public:
static void Tick();
static void BeforeExit();
static void Exit();
static void SetHighDpiAwarenessEnabled(bool enable);
static int32 GetDpi();
static String GetUserLocaleName();
static String GetComputerName();