From 41271d632b74f5cf47c30d3b699eb6b2786f2136 Mon Sep 17 00:00:00 2001 From: inmarket Date: Sat, 23 Jun 2018 13:02:07 +1000 Subject: Added new type definitions - moving towards V3.0 --- demos/modules/gdisp/basics/main.c | 2 +- demos/modules/gdisp/circles/main.c | 2 +- demos/modules/gdisp/fonts/main.c | 2 +- demos/modules/gdisp/fonts_cyrillic/main.c | 2 +- demos/modules/gdisp/multiple_displays/main.c | 4 ++-- demos/modules/gdisp/pixmap/main.c | 2 +- demos/modules/gdisp/polygons/main.c | 2 +- demos/modules/gdisp/thickarcs/main.c | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) (limited to 'demos/modules/gdisp') diff --git a/demos/modules/gdisp/basics/main.c b/demos/modules/gdisp/basics/main.c index ccf98d22..9517e0a6 100644 --- a/demos/modules/gdisp/basics/main.c +++ b/demos/modules/gdisp/basics/main.c @@ -48,7 +48,7 @@ int main(void) { for(i = 5, j = 0; i < width && j < height; i += 7, j += i/20) gdispDrawPixel(i, j, GFX_WHITE); - while(TRUE) { + while(1) { gfxSleepMilliseconds(500); } } diff --git a/demos/modules/gdisp/circles/main.c b/demos/modules/gdisp/circles/main.c index 4efb896a..e631da1a 100644 --- a/demos/modules/gdisp/circles/main.c +++ b/demos/modules/gdisp/circles/main.c @@ -47,7 +47,7 @@ int main(void) { gdispFillEllipse (width-width/6, height-height/6, width/8, height/16, GFX_BLUE); gdispDrawEllipse (width-width/6, height-height/6, width/16, height/8, GFX_YELLOW); - while(TRUE) { + while(1) { gfxSleepMilliseconds(500); } } diff --git a/demos/modules/gdisp/fonts/main.c b/demos/modules/gdisp/fonts/main.c index 73d7c54e..a0d888dc 100644 --- a/demos/modules/gdisp/fonts/main.c +++ b/demos/modules/gdisp/fonts/main.c @@ -88,7 +88,7 @@ int main(void) { gdispFillStringBox(0, y, width, fheight1, buf, font1, GFX_RED, GFX_WHITE, justifyCenter); // Wait forever - while(TRUE) { + while(1) { gfxSleepMilliseconds(500); } } diff --git a/demos/modules/gdisp/fonts_cyrillic/main.c b/demos/modules/gdisp/fonts_cyrillic/main.c index b65801a1..1f6a30a9 100644 --- a/demos/modules/gdisp/fonts_cyrillic/main.c +++ b/demos/modules/gdisp/fonts_cyrillic/main.c @@ -42,7 +42,7 @@ int main(void) { gdispDrawString(10, 10, "привет мир", font1, GFX_YELLOW); // Wait forever - while(TRUE) { + while(1) { gfxSleepMilliseconds(500); } } diff --git a/demos/modules/gdisp/multiple_displays/main.c b/demos/modules/gdisp/multiple_displays/main.c index 8b38a22a..ea05507b 100644 --- a/demos/modules/gdisp/multiple_displays/main.c +++ b/demos/modules/gdisp/multiple_displays/main.c @@ -83,7 +83,7 @@ gdispGDrawPixel(g, i, j, GFX_WHITE); } - while(TRUE) { + while(1) { gfxSleepMilliseconds(500); } } @@ -126,7 +126,7 @@ gdispDrawPixel(i, j, GFX_WHITE); } - while(TRUE) { + while(1) { gfxSleepMilliseconds(500); } } diff --git a/demos/modules/gdisp/pixmap/main.c b/demos/modules/gdisp/pixmap/main.c index a6791ec9..975611c8 100644 --- a/demos/modules/gdisp/pixmap/main.c +++ b/demos/modules/gdisp/pixmap/main.c @@ -62,7 +62,7 @@ int main(void) { gdispGDrawLine(pixmap, 0, 0, gdispGGetWidth(pixmap)-1, gdispGGetHeight(pixmap)-1, GFX_WHITE); i = j = 0; - while(TRUE) { + while(1) { // Clear the old position gdispFillArea(i, j, PIXMAP_WIDTH, PIXMAP_HEIGHT, GFX_BLACK); diff --git a/demos/modules/gdisp/polygons/main.c b/demos/modules/gdisp/polygons/main.c index 8a4f7df3..277fd0bf 100644 --- a/demos/modules/gdisp/polygons/main.c +++ b/demos/modules/gdisp/polygons/main.c @@ -103,7 +103,7 @@ int main(void) { transmaxy = INT2MTYPE(height - 15); transminy = INT2MTYPE(15); - while(TRUE) { + while(1) { // Move to the new location, rotation and scale scalex += scaleincx; diff --git a/demos/modules/gdisp/thickarcs/main.c b/demos/modules/gdisp/thickarcs/main.c index adf42810..c190d43c 100644 --- a/demos/modules/gdisp/thickarcs/main.c +++ b/demos/modules/gdisp/thickarcs/main.c @@ -43,7 +43,7 @@ int main(void) // Initialize the uGFX library gfxInit(); - while(TRUE) { + while(1) { // Clear the entire screen gdispClear(GFX_BLACK); -- cgit v1.2.3