Cocoa Port:
- Change gpuColorFormat property data type from UInt32 to NSUInteger.
This commit is contained in:
parent
f8e0585d26
commit
0d162bdb9f
|
@ -37,7 +37,7 @@ class GPUEventHandlerOSX;
|
|||
@property (assign) UInt32 gpuStateFlags;
|
||||
@property (assign) NSSize gpuDimensions;
|
||||
@property (assign) NSUInteger gpuScale;
|
||||
@property (assign) UInt32 gpuColorFormat;
|
||||
@property (assign) NSUInteger gpuColorFormat;
|
||||
@property (readonly) pthread_rwlock_t *gpuFrameRWLock;
|
||||
|
||||
@property (assign) BOOL layerMainGPU;
|
||||
|
|
|
@ -224,7 +224,7 @@ public:
|
|||
return (NSUInteger)_gpuScale;
|
||||
}
|
||||
|
||||
- (void) setGpuColorFormat:(UInt32)colorFormat
|
||||
- (void) setGpuColorFormat:(NSUInteger)colorFormat
|
||||
{
|
||||
gpuEvent->FrameFinish();
|
||||
gpuEvent->Render3DLock();
|
||||
|
@ -237,11 +237,11 @@ public:
|
|||
gpuEvent->Render3DUnlock();
|
||||
}
|
||||
|
||||
- (UInt32) gpuColorFormat
|
||||
- (NSUInteger) gpuColorFormat
|
||||
{
|
||||
gpuEvent->Render3DLock();
|
||||
gpuEvent->FramebufferLockRead();
|
||||
const UInt32 colorFormat = (UInt32)GPU->GetDisplayInfo().colorFormat;
|
||||
const NSUInteger colorFormat = (NSUInteger)GPU->GetDisplayInfo().colorFormat;
|
||||
gpuEvent->FramebufferUnlock();
|
||||
gpuEvent->Render3DUnlock();
|
||||
|
||||
|
|
Loading…
Reference in New Issue