Various twekas

This commit is contained in:
Wojtek Figat
2023-06-01 00:47:05 +02:00
parent c46f78885e
commit a2e2ef51be
8 changed files with 12 additions and 11 deletions

View File

@@ -229,8 +229,6 @@ bool MacPlatformTools::OnPostProcess(CookingData& data)
// TODO: sign binaries
// TODO: expose event to inject custom post-processing before app packaging (eg. third-party plugins)
// Package application
const auto buildSettings = BuildSettings::Get();
if (buildSettings->SkipPackaging)

View File

@@ -23,7 +23,7 @@ public:
public:
// [Window]
// [WindowBase]
void* GetNativePtr() const override;
void Show() override;
void Hide() override;

View File

@@ -46,6 +46,7 @@
CPUInfo Cpu;
String UserLocale;
double SecondsPerCycle;
NSAutoreleasePool* AutoreleasePool = nullptr;
float ApplePlatform::ScreenScale = 1.0f;
@@ -268,11 +269,16 @@ bool ApplePlatform::Init()
OnPlatformUserAdd(New<User>(username));
}
AutoreleasePool = [[NSAutoreleasePool alloc] init];
return false;
}
void ApplePlatform::Tick()
{
// TODO: do it once every X fames
[AutoreleasePool drain];
AutoreleasePool = [[NSAutoreleasePool alloc] init];
}
void ApplePlatform::BeforeExit()

View File

@@ -17,7 +17,6 @@ class FLAXENGINE_API GDKWindow : public WindowBase
private:
Windows::HWND _handle;
Float2 _clientSize;
public:
@@ -77,7 +76,7 @@ private:
public:
// [Window]
// [WindowBase]
void* GetNativePtr() const override;
void Show() override;
void Hide() override;

View File

@@ -65,7 +65,7 @@ private:
public:
// [Window]
// [WindowBase]
void* GetNativePtr() const override;
void Show() override;
void Hide() override;

View File

@@ -14,7 +14,6 @@ class FLAXENGINE_API MacWindow : public WindowBase
{
private:
Float2 _clientSize;
void* _window;
bool _isMouseOver = false;
@@ -28,7 +27,7 @@ public:
public:
// [Window]
// [WindowBase]
void* GetNativePtr() const override;
void Show() override;
void Hide() override;

View File

@@ -150,7 +150,7 @@ private:
public:
// [Window]
// [WindowBase]
void* GetNativePtr() const override
{
return _impl->GetHandle();

View File

@@ -30,7 +30,6 @@ private:
bool _clipCursorSet = false;
bool _isDuringMaximize = false;
Windows::HANDLE _monitor = nullptr;
Float2 _clientSize;
Windows::LONG _clipCursorRect[4];
int32 _regionWidth = 0, _regionHeight = 0;
@@ -95,7 +94,7 @@ private:
public:
// [Window]
// [WindowBase]
void* GetNativePtr() const override;
void Show() override;
void Hide() override;