diff options
Diffstat (limited to 'Source/Gfx.c')
| -rw-r--r-- | Source/Gfx.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Source/Gfx.c b/Source/Gfx.c index 5110442..798151c 100644 --- a/Source/Gfx.c +++ b/Source/Gfx.c @@ -179,18 +179,10 @@ void GfxSetPrimitiveList(void) void GfxDrawScene_Fast(void) { - enum - { - FPS_INFO_X = 16, - FPS_INFO_Y = 16 - }; - SystemDevMenu(); FontSetFlags(&SmallFont, FONT_NOFLAGS); - FontPrintText(&SmallFont, FPS_INFO_X, FPS_INFO_Y, "%d/%d", SystemGetFPS(), REFRESH_FREQUENCY); - if (System1SecondTick() == true) { one_second_show = one_second_show? false:true; @@ -213,10 +205,18 @@ bool GfxReadyForDMATransfer(void) void GfxDrawScene(void) { + enum + { + FPS_INFO_X = 16, + FPS_INFO_Y = 16 + }; + while ( (SystemRefreshNeeded() == false) || (GfxIsGPUBusy() == true) ); + FontPrintText(&SmallFont, FPS_INFO_X, FPS_INFO_Y, "%d/%d", SystemGetFPS(), REFRESH_FREQUENCY); + GfxDrawScene_Fast(); SystemCyclicHandler(); |
