aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@unormal.org>2014-05-11 20:20:49 +0200
committerJoel Bodenmann <joel@unormal.org>2014-05-11 20:20:49 +0200
commite28e572ea81e5d81a33161b318c7849463c16e75 (patch)
tree84953c73359ff818a036b52aac27c94c08c6cc64 /src
parent4af82a95d4e64faf61436f7b708fc7e46980f8c2 (diff)
downloaduGFX-e28e572ea81e5d81a33161b318c7849463c16e75.tar.gz
uGFX-e28e572ea81e5d81a33161b318c7849463c16e75.tar.bz2
uGFX-e28e572ea81e5d81a33161b318c7849463c16e75.zip
Progressbar GWIN_PROGRESSBAR_AUTO feature fix
Diffstat (limited to 'src')
-rw-r--r--src/gwin/progressbar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gwin/progressbar.c b/src/gwin/progressbar.c
index ca267f0c..ed0675a9 100644
--- a/src/gwin/progressbar.c
+++ b/src/gwin/progressbar.c
@@ -31,7 +31,7 @@ static void ResetDisplayPos(GProgressbarObject *gsw) {
// We have to deinitialize the timer which auto updates the progressbar if any
static void _destroy(GHandle gh) {
- #if GFX_USE_GTIMER
+ #if GWIN_PROGRESSBAR_AUTO
gtimerDeinit( &((GProgressbarObject *)gh)->gt );
#endif
@@ -82,9 +82,9 @@ GHandle gwinGProgressbarCreate(GDisplay *g, GProgressbarObject *gs, const GWidge
gs->max = 100;
gs->res = 1;
gs->pos = 0;
- gs->delay = 0;
#if GWIN_PROGRESSBAR_AUTO
+ gs->delay = 0;
gtimerInit(&gs->gt);
#endif