diff options
| author | Xavi Del Campo <xavi.dcr@tutanota.com> | 2020-03-03 20:07:27 +0100 |
|---|---|---|
| committer | Xavi Del Campo <xavi.dcr@tutanota.com> | 2020-03-05 18:38:04 +0100 |
| commit | e32281cf6b01800f95d7640a127811c79234fe6f (patch) | |
| tree | f34d870bfdfa425600aead8cbf9aadcbc71d4fbc /src/Gfx.c | |
| parent | 792e22676786a577b2edc0ed0ed78e51c5b38245 (diff) | |
| download | opensend-e32281cf6b01800f95d7640a127811c79234fe6f.tar.gz | |
Work on SIO IRQ
Diffstat (limited to 'src/Gfx.c')
| -rw-r--r-- | src/Gfx.c | 46 |
1 files changed, 4 insertions, 42 deletions
@@ -1,17 +1,3 @@ -/*******************************************************************//** -* -* \file Gfx.c -* -* \author Xavier Del Campo -* -* \brief Implementation of Gfx module. -* -************************************************************************/ - -/* ************************************* - * Includes - * *************************************/ - #include "Gfx.h" #include "IO.h" #include <psx.h> @@ -22,22 +8,6 @@ #include <stdio.h> #include <stdint.h> -/* ************************************* - * Defines - * *************************************/ - -/* ***************************************************************************** - * Types definition - * ****************************************************************************/ - -/* ***************************************************************************** - * Global variables definition - * ****************************************************************************/ - -/* ***************************************************************************** - * Local variables definition - * ****************************************************************************/ - /* The drawing environment points to VRAM * coordinates where primitive data is * being drawn onto. */ @@ -51,10 +21,6 @@ static GsDispEnv sDispEnv; /* This variable is set to true on VSYNC event. */ static volatile bool bSyncFlag; -/* ***************************************************************************** - * Local prototypes declaration - * ****************************************************************************/ - static void GfxInitDrawEnv(void); static void GfxInitDispEnv(void); static void GfxSwapBuffers(void); @@ -62,10 +28,6 @@ static void GfxSortBigSprite(GsSprite *const psSpr); static void GfxSetPrimList(void); static void ISR_VBlank(void); -/* ***************************************************************************** - * Functions definition - * ****************************************************************************/ - /***************************************************************************//** * * \brief Initialization of Gfx module. @@ -498,10 +460,10 @@ void GfxSaveDisplayData(GsSprite *const spr) GFX_SECOND_DISPLAY_U = GFX_SECOND_DISPLAY_X % GFX_TPAGE_WIDTH }; - while (GfxIsGPUBusy()); + while (GfxIsBusy()); - MoveImage( DispEnv.x, - DispEnv.y, + MoveImage( sDispEnv.x, + sDispEnv.y, GFX_SECOND_DISPLAY_X, GFX_SECOND_DISPLAY_Y, X_SCREEN_RESOLUTION, @@ -519,5 +481,5 @@ void GfxSaveDisplayData(GsSprite *const spr) spr->g = NORMAL_LUMINANCE; spr->b = NORMAL_LUMINANCE; - while (GfxIsGPUBusy()); + while (GfxIsBusy()); } |
