aboutsummaryrefslogtreecommitdiffstats
path: root/demos/games
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2018-07-08 15:32:26 +1000
committerinmarket <andrewh@inmarket.com.au>2018-07-08 15:32:26 +1000
commit1fc4180d41a77088bbb2c0ce020d5ff7ab88c16e (patch)
tree3ffb1a5fd2d8e7f08b7b45938824ecbab1170288 /demos/games
parent93da5a0578e7f16ea846eb257f36a24e316ef8d4 (diff)
downloaduGFX-1fc4180d41a77088bbb2c0ce020d5ff7ab88c16e.tar.gz
uGFX-1fc4180d41a77088bbb2c0ce020d5ff7ab88c16e.tar.bz2
uGFX-1fc4180d41a77088bbb2c0ce020d5ff7ab88c16e.zip
gThreadpriorityLow/Normal/High to replace LOW_/NORMAL_/HIGH_PRIORITY
Diffstat (limited to 'demos/games')
-rw-r--r--demos/games/justget10/jg10.c2
-rw-r--r--demos/games/minesweeper/mines.c2
-rw-r--r--demos/games/tetris/tetris.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/demos/games/justget10/jg10.c b/demos/games/justget10/jg10.c
index d824ca06..d6ec0e2e 100644
--- a/demos/games/justget10/jg10.c
+++ b/demos/games/justget10/jg10.c
@@ -460,7 +460,7 @@ void jg10Start(void) {
#endif
initField();
guiCreate();
- gfxThreadCreate(0, 1024, NORMAL_PRIORITY, thdJg10, 0);
+ gfxThreadCreate(0, 1024, gThreadpriorityNormal, thdJg10, 0);
while (!jg10GameOver) {
gfxSleepMilliseconds(100);
}
diff --git a/demos/games/minesweeper/mines.c b/demos/games/minesweeper/mines.c
index 19d8c373..5a0b4c41 100644
--- a/demos/games/minesweeper/mines.c
+++ b/demos/games/minesweeper/mines.c
@@ -382,7 +382,7 @@ void minesStart(void)
#endif
initField();
- gfxThreadCreate(0, 1024, NORMAL_PRIORITY, thdMines, 0);
+ gfxThreadCreate(0, 1024, gThreadpriorityNormal, thdMines, 0);
while (!minesGameOver) {
gfxSleepMilliseconds(100);
}
diff --git a/demos/games/tetris/tetris.c b/demos/games/tetris/tetris.c
index ad8debd7..cd4cc315 100644
--- a/demos/games/tetris/tetris.c
+++ b/demos/games/tetris/tetris.c
@@ -498,7 +498,7 @@ void tetrisStart(void) {
tetrisGameOver = gFalse;
printGameOver(); // removes "Game Over!" if tetrisGameOver == gFalse
tetrisPreviousGameTime = gfxSystemTicks();
- gfxThreadCreate(0, 1024, NORMAL_PRIORITY, thdTetris, 0);
+ gfxThreadCreate(0, 1024, gThreadpriorityNormal, thdTetris, 0);
while (!tetrisGameOver) {
gfxSleepMilliseconds(1000);
}