Cocoa Port (OpenEmu Plug-in): Change the video format to 18-bit RGB666, which matches a hardware NDS.
This commit is contained in:
parent
a7065311cc
commit
25eae6e1ed
|
@ -159,7 +159,6 @@ public:
|
||||||
|
|
||||||
gpuEvent = new GPUEventHandlerOSX;
|
gpuEvent = new GPUEventHandlerOSX;
|
||||||
GPU->SetEventHandler(gpuEvent);
|
GPU->SetEventHandler(gpuEvent);
|
||||||
GPU->SetWillAutoResolveToCustomBuffer(false);
|
|
||||||
|
|
||||||
fetchObject = NULL;
|
fetchObject = NULL;
|
||||||
|
|
||||||
|
@ -193,6 +192,8 @@ public:
|
||||||
|
|
||||||
fetchObject->Init();
|
fetchObject->Init();
|
||||||
gpuEvent->SetFetchObject(fetchObject);
|
gpuEvent->SetFetchObject(fetchObject);
|
||||||
|
|
||||||
|
GPU->SetWillAutoResolveToCustomBuffer(false);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
[self clearWithColor:0x8000];
|
[self clearWithColor:0x8000];
|
||||||
|
|
|
@ -85,6 +85,8 @@ volatile bool execute = true;
|
||||||
cdsGPU = [[[[CocoaDSGPU alloc] init] retain] autorelease];
|
cdsGPU = [[[[CocoaDSGPU alloc] init] retain] autorelease];
|
||||||
[cdsGPU setRender3DThreads:0]; // Pass 0 to automatically set the number of rendering threads
|
[cdsGPU setRender3DThreads:0]; // Pass 0 to automatically set the number of rendering threads
|
||||||
[cdsGPU setRender3DRenderingEngine:CORE3DLIST_SWRASTERIZE];
|
[cdsGPU setRender3DRenderingEngine:CORE3DLIST_SWRASTERIZE];
|
||||||
|
[cdsGPU setGpuScale:1];
|
||||||
|
[cdsGPU setGpuColorFormat:NDSColorFormat_BGR666_Rev];
|
||||||
|
|
||||||
// Set up the DS controller
|
// Set up the DS controller
|
||||||
cdsController = [[[[CocoaDSController alloc] init] retain] autorelease];
|
cdsController = [[[[CocoaDSController alloc] init] retain] autorelease];
|
||||||
|
@ -305,7 +307,7 @@ volatile bool execute = true;
|
||||||
|
|
||||||
- (GLenum)pixelType
|
- (GLenum)pixelType
|
||||||
{
|
{
|
||||||
return GL_UNSIGNED_SHORT_1_5_5_5_REV;
|
return GL_UNSIGNED_INT_8_8_8_8_REV;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (GLenum)pixelFormat
|
- (GLenum)pixelFormat
|
||||||
|
@ -315,7 +317,7 @@ volatile bool execute = true;
|
||||||
|
|
||||||
- (GLenum)internalPixelFormat
|
- (GLenum)internalPixelFormat
|
||||||
{
|
{
|
||||||
return GL_RGB5_A1;
|
return GL_RGBA;
|
||||||
}
|
}
|
||||||
|
|
||||||
#pragma mark - Audio
|
#pragma mark - Audio
|
||||||
|
|
Loading…
Reference in New Issue