mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-13 17:47:12 -04:00
Wii/GameCube: Enable split screen mode too
This commit is contained in:
parent
2d307e6fc1
commit
0ffc36133d
@ -292,6 +292,7 @@ typedef cc_uint8 cc_bool;
|
||||
#define CC_BUILD_COOPTHREADED
|
||||
#define CC_BUILD_HTTPCLIENT
|
||||
#define CC_BUILD_BEARSSL
|
||||
#define CC_BUILD_SPLITSCREEN
|
||||
#elif defined __vita__
|
||||
#define CC_BUILD_PSVITA
|
||||
#define CC_BUILD_CONSOLE
|
||||
|
@ -27,9 +27,8 @@ static void InitGX(void) {
|
||||
memset(fifo_buffer, 0, FIFO_SIZE);
|
||||
|
||||
GX_Init(fifo_buffer, FIFO_SIZE);
|
||||
GX_SetViewport(0, 0, mode->fbWidth, mode->efbHeight, 0, 1);
|
||||
Gfx_SetViewport(0, 0, mode->fbWidth, mode->efbHeight);
|
||||
GX_SetDispCopyYScale((f32)mode->xfbHeight / (f32)mode->efbHeight);
|
||||
GX_SetScissor(0, 0, mode->fbWidth, mode->efbHeight);
|
||||
GX_SetDispCopySrc(0, 0, mode->fbWidth, mode->efbHeight);
|
||||
GX_SetDispCopyDst(mode->fbWidth, mode->xfbHeight);
|
||||
GX_SetCopyFilter(mode->aa, mode->sample_pattern,
|
||||
@ -312,7 +311,10 @@ void Gfx_EndFrame(void) {
|
||||
|
||||
void Gfx_OnWindowResize(void) { }
|
||||
|
||||
void Gfx_SetViewport(int x, int y, int w, int h) { }
|
||||
void Gfx_SetViewport(int x, int y, int w, int h) {
|
||||
GX_SetViewport(x, y, w, h, 0, 1);
|
||||
GX_SetScissor(x, y, w, h);
|
||||
}
|
||||
|
||||
cc_bool Gfx_WarnIfNecessary(void) { return false; }
|
||||
|
||||
@ -595,4 +597,4 @@ void Gfx_DrawVb_IndexedTris(int verticesCount) {
|
||||
void Gfx_DrawIndexedTris_T2fC4b(int verticesCount, int startVertex) {
|
||||
Draw_TexturedTriangles(verticesCount, startVertex);
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user