Just poking around at code because I can't sleep.
This commit is contained in:
@@ -28,6 +28,8 @@ static RageMutex g_ResizeLock( "Window resize lock." );
|
|||||||
// Simple helper class
|
// Simple helper class
|
||||||
class AutoreleasePool
|
class AutoreleasePool
|
||||||
{
|
{
|
||||||
|
AutoreleasePool( const AutoreleasePool& );
|
||||||
|
AutoreleasePool &operator=( const AutoreleasePool& );
|
||||||
NSAutoreleasePool *m_Pool;
|
NSAutoreleasePool *m_Pool;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@@ -35,10 +37,7 @@ public:
|
|||||||
~AutoreleasePool() { [m_Pool release]; }
|
~AutoreleasePool() { [m_Pool release]; }
|
||||||
};
|
};
|
||||||
|
|
||||||
// These can nest.
|
#define POOL AutoreleasePool UNIQUE_NAME(pool)
|
||||||
#define POOL2(x) AutoreleasePool pool ## x
|
|
||||||
#define POOL1(x) POOL2(x)
|
|
||||||
#define POOL POOL1(__LINE__)
|
|
||||||
|
|
||||||
// Window delegate class
|
// Window delegate class
|
||||||
@interface SMWindowDelegate : NSObject
|
@interface SMWindowDelegate : NSObject
|
||||||
@@ -434,7 +433,7 @@ void LowLevelWindow_Cocoa::GetDisplayResolutions( DisplayResolutions &dr ) const
|
|||||||
DisplayResolution res = { width, height, stretched };
|
DisplayResolution res = { width, height, stretched };
|
||||||
dr.insert( res );
|
dr.insert( res );
|
||||||
}
|
}
|
||||||
// Do not release modes! We don't own it here.
|
// Do not release modes! We don't own them here.
|
||||||
}
|
}
|
||||||
|
|
||||||
float LowLevelWindow_Cocoa::GetMonitorAspectRatio() const
|
float LowLevelWindow_Cocoa::GetMonitorAspectRatio() const
|
||||||
|
|||||||
Reference in New Issue
Block a user