diff options
author | inmarket <andrewh@inmarket.com.au> | 2018-07-08 14:30:31 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2018-07-08 14:30:31 +1000 |
commit | 215f31ee3dd27f461540384cdba04b58b481fadc (patch) | |
tree | 1a100121d47819202187914dc4a321cfb7030351 /demos/games/tetris/tetris.c | |
parent | e23ae94e91369501df310bc3afd4ab711d263cab (diff) | |
download | uGFX-215f31ee3dd27f461540384cdba04b58b481fadc.tar.gz uGFX-215f31ee3dd27f461540384cdba04b58b481fadc.tar.bz2 uGFX-215f31ee3dd27f461540384cdba04b58b481fadc.zip |
Added type gDelay to replace V2.x delaytime_t
Added type gTicks to replace V2.x systemticks_t
Added type gThreadreturn to replace V2.x threadreturn_t
Added type gThreadpriority to replace V2.x threadpriority_t
Diffstat (limited to 'demos/games/tetris/tetris.c')
-rw-r--r-- | demos/games/tetris/tetris.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/demos/games/tetris/tetris.c b/demos/games/tetris/tetris.c index 53c0e34b..ad8debd7 100644 --- a/demos/games/tetris/tetris.c +++ b/demos/games/tetris/tetris.c @@ -78,8 +78,8 @@ const int tetrisShapes[TETRIS_SHAPE_COUNT][4][2] = { int tetrisField[TETRIS_FIELD_HEIGHT][TETRIS_FIELD_WIDTH]; // main tetris field array unsigned int tetrisGameSpeed = 500; // game auto-move speed in ms unsigned int tetrisKeySpeed = 140; // game key repeat speed in ms -systemticks_t tetrisPreviousGameTime = 0; -systemticks_t tetrisPreviousKeyTime = 0; +gTicks tetrisPreviousGameTime = 0; +gTicks tetrisPreviousKeyTime = 0; int tetrisCurrentShape[4][2]; int tetrisNextShape[4][2]; int tetrisOldShape[4][2]; @@ -474,7 +474,7 @@ static DECLARE_THREAD_FUNCTION(thdTetris, arg) { tetrisPreviousKeyTime = gfxSystemTicks(); } } - return (threadreturn_t)0; + return (gThreadreturn)0; } static void tetrisDeinit(void) { |