From e32281cf6b01800f95d7640a127811c79234fe6f Mon Sep 17 00:00:00 2001 From: Xavi Del Campo Date: Tue, 3 Mar 2020 20:07:27 +0100 Subject: Work on SIO IRQ --- src/Gfx.c | 46 ++++------------------------------------------ 1 file changed, 4 insertions(+), 42 deletions(-) (limited to 'src/Gfx.c') diff --git a/src/Gfx.c b/src/Gfx.c index 49f0f12..60fa4bd 100644 --- a/src/Gfx.c +++ b/src/Gfx.c @@ -1,17 +1,3 @@ -/*******************************************************************//** -* -* \file Gfx.c -* -* \author Xavier Del Campo -* -* \brief Implementation of Gfx module. -* -************************************************************************/ - -/* ************************************* - * Includes - * *************************************/ - #include "Gfx.h" #include "IO.h" #include @@ -22,22 +8,6 @@ #include #include -/* ************************************* - * 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()); } -- cgit v1.2.3