From 330f891081dbd755063767a25f39c517fbe5c432 Mon Sep 17 00:00:00 2001 From: inmarket Date: Sun, 8 Jul 2018 15:40:27 +1000 Subject: Added type gThread to replace V2.x gfxThreadHandle --- demos/3rdparty/notepad-2/notepadApp.c | 2 +- demos/3rdparty/notepad-2/notepadApp.h | 2 +- demos/3rdparty/notepad-2/notepadCore.c | 2 +- demos/applications/combo/bounce.c | 2 +- demos/applications/combo/mandelbrot.c | 2 +- demos/modules/gos/threads_advanced/main.c | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) (limited to 'demos') diff --git a/demos/3rdparty/notepad-2/notepadApp.c b/demos/3rdparty/notepad-2/notepadApp.c index 3ce60db0..3b5d2cef 100644 --- a/demos/3rdparty/notepad-2/notepadApp.c +++ b/demos/3rdparty/notepad-2/notepadApp.c @@ -464,7 +464,7 @@ static DECLARE_THREAD_FUNCTION(notepadThread, param) { void nSetColorScheme(NColorScheme sch) { nCurColorScheme = sch; } NColorScheme nGetColorScheme(void) { return nCurColorScheme; } -gfxThreadHandle nLaunchNotepadApp(void) { +gThread nLaunchNotepadApp(void) { return gfxThreadCreate(waNotepadThread, sizeof(waNotepadThread), diff --git a/demos/3rdparty/notepad-2/notepadApp.h b/demos/3rdparty/notepad-2/notepadApp.h index 661aaaf2..55ec693e 100644 --- a/demos/3rdparty/notepad-2/notepadApp.h +++ b/demos/3rdparty/notepad-2/notepadApp.h @@ -45,6 +45,6 @@ void nSetColorScheme(NColorScheme sch); NColorScheme nGetColorScheme(void); -gfxThreadHandle nLaunchNotepadApp(void); +gThread nLaunchNotepadApp(void); #endif /* NOTEPADAPP_H_ */ diff --git a/demos/3rdparty/notepad-2/notepadCore.c b/demos/3rdparty/notepad-2/notepadCore.c index ffe95d50..73a877a9 100644 --- a/demos/3rdparty/notepad-2/notepadCore.c +++ b/demos/3rdparty/notepad-2/notepadCore.c @@ -48,7 +48,7 @@ static DECLARE_THREAD_STACK(waDrawThread, NCORE_THD_STACK_SIZE); static uint8_t nPenWidth = 1; static uint8_t nMode = NCORE_MODE_DRAW; -static gfxThreadHandle nThd; +static gThread nThd; static GHandle ncoreDrawingArea = NULL; static GHandle nStatusConsole = NULL; diff --git a/demos/applications/combo/bounce.c b/demos/applications/combo/bounce.c index 12f95f61..7c77e478 100644 --- a/demos/applications/combo/bounce.c +++ b/demos/applications/combo/bounce.c @@ -35,7 +35,7 @@ static volatile gBool run; static GHandle gh; -static gfxThreadHandle thread; +static gThread thread; /** * NOTE: diff --git a/demos/applications/combo/mandelbrot.c b/demos/applications/combo/mandelbrot.c index 866131e3..9299f7d8 100644 --- a/demos/applications/combo/mandelbrot.c +++ b/demos/applications/combo/mandelbrot.c @@ -32,7 +32,7 @@ static volatile gBool run; static GHandle gh; -static gfxThreadHandle thread; +static gThread thread; static void mandelbrot(float x1, float y1, float x2, float y2) { unsigned int i,j, width, height; diff --git a/demos/modules/gos/threads_advanced/main.c b/demos/modules/gos/threads_advanced/main.c index dd4332ed..2f3a3b47 100644 --- a/demos/modules/gos/threads_advanced/main.c +++ b/demos/modules/gos/threads_advanced/main.c @@ -41,7 +41,7 @@ #include "gfx.h" GTimer gt; -gfxThreadHandle thd; +gThread thd; #if defined(WIN32) #include -- cgit v1.2.3