diff options
| author | XaviDCR92 <xavi.dcr@gmail.com> | 2017-05-05 23:55:15 +0200 |
|---|---|---|
| committer | XaviDCR92 <xavi.dcr@gmail.com> | 2017-05-05 23:55:15 +0200 |
| commit | 6a90ed354fcf4871aa7ce1d0b599ff69787f1d5f (patch) | |
| tree | dce9d108c63173c403a3a9c979021589ceb41640 /Source/Gfx.c | |
| parent | 83b4684d7cb9934371909b522d6daa0f16cc0396 (diff) | |
| download | airport-6a90ed354fcf4871aa7ce1d0b599ff69787f1d5f.tar.gz | |
* Split screen is now working. Yay!!
* New prototypes for Gfx. Still preliminar, but make split screen work.
Diffstat (limited to 'Source/Gfx.c')
| -rw-r--r-- | Source/Gfx.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/Source/Gfx.c b/Source/Gfx.c index 329ba19..27646ee 100644 --- a/Source/Gfx.c +++ b/Source/Gfx.c @@ -53,7 +53,7 @@ GsSprite PSXButtons; * Local Prototypes * *************************************/ -static void GfxSwapBuffers(void); + /* ************************************* * Local Variables @@ -122,6 +122,11 @@ void GfxDrawScene_Fast(void) GsDrawList(); } +void GfxDrawScene_NoSwap(void) +{ + GsDrawList(); +} + bool GfxReadyForDMATransfer(void) { return (GPUSTAT & 1<<28); @@ -319,11 +324,11 @@ bool GfxIsInsideScreenArea(short x, short y, short w, short h) { if( ( (x + w) >= 0) && - (x < X_SCREEN_RESOLUTION) + (x < DrawEnv.w) && ( (y + h) >= 0) && - (y < Y_SCREEN_RESOLUTION) ) + (y < DrawEnv.h) ) { return true; } @@ -515,7 +520,6 @@ TYPE_ISOMETRIC_POS GfxCartesianToIsometric(TYPE_CARTESIAN_POS * ptrCartPos) void GfxSetSplitScreen(uint8_t playerIndex) { - switch(playerIndex) { case 0: @@ -534,11 +538,6 @@ void GfxSetSplitScreen(uint8_t playerIndex) break; } - dprintf("Player idx = %d, x = %d, w = %d\n", - playerIndex, - DrawEnv.x, - DrawEnv.w); - GsSetDrawEnv(&DrawEnv); } |
