Cocoa Port:

- Fix a performance bug where CocoaDSDisplay objects weren't properly frameskipping.
- Fix compiling when building on a machine running Leopard.
This commit is contained in:
rogerman 2013-03-13 05:04:12 +00:00
parent a18082d29b
commit b78553cca8
2 changed files with 5 additions and 1 deletions

View File

@ -739,7 +739,7 @@ static void* RunCoreThread(void *arg)
pthread_mutex_lock(&param->mutexOutputList);
for(CocoaDSOutput *cdsOutput in cdsOutputList)
{
if (param->framesToSkip > 0 && [cdsOutput isMemberOfClass:[CocoaDSDisplay class]])
if (param->framesToSkip > 0 && [cdsOutput isKindOfClass:[CocoaDSDisplay class]])
{
continue;
}

View File

@ -38,7 +38,11 @@
#pragma mark -
#if MAC_OS_X_VERSION_MAX_ALLOWED > MAC_OS_X_VERSION_10_5
@interface InputPrefsView : NSView <InputHIDManagerTarget, NSOutlineViewDelegate, NSOutlineViewDataSource>
#else
@interface InputPrefsView : NSView <InputHIDManagerTarget>
#endif
{
NSWindow *prefWindow;
NSOutlineView *inputPrefOutlineView;