aboutsummaryrefslogtreecommitdiff
path: root/Source/Gfx.c
diff options
context:
space:
mode:
authorXaviDCR92 <xavi.dcr@gmail.com>2017-09-16 03:21:15 +0200
committerXaviDCR92 <xavi.dcr@gmail.com>2017-09-16 03:21:15 +0200
commit6629a61c3bde7a79c7ac32d6bffbc72e31e91fc3 (patch)
tree7a23885577374b5a5760ae4514099feadae312cf /Source/Gfx.c
parent0d7af34486f15d8f31f8474f17cad698923cadcb (diff)
downloadairport-6629a61c3bde7a79c7ac32d6bffbc72e31e91fc3.tar.gz
* Removed unneeded -g flag from Makefile.
* Aircraft now prevents collision against other aircraft if state == STATE_TAXIING. * Game: new event handlers for new Aircraft collision prevention algorithm. * Font: although not compulsory, _blend_effect_lum should be volatile. * Other minor changes.
Diffstat (limited to 'Source/Gfx.c')
-rw-r--r--Source/Gfx.c16
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();