aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@unormal.org>2014-04-23 23:56:22 +0200
committerJoel Bodenmann <joel@unormal.org>2014-04-23 23:56:22 +0200
commita34c0ded1873121431eed41210b7f44c8271ac0a (patch)
treeabc93de8443a5f14a0bfb538174464d838d065d5
parentc3b17604ee456a725328f924a8a3ec339629eb7b (diff)
downloaduGFX-a34c0ded1873121431eed41210b7f44c8271ac0a.tar.gz
uGFX-a34c0ded1873121431eed41210b7f44c8271ac0a.tar.bz2
uGFX-a34c0ded1873121431eed41210b7f44c8271ac0a.zip
Updating progressbar demo
-rw-r--r--demos/modules/gwin/progressbar/main.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/demos/modules/gwin/progressbar/main.c b/demos/modules/gwin/progressbar/main.c
index 28ae2c2e..960a3293 100644
--- a/demos/modules/gwin/progressbar/main.c
+++ b/demos/modules/gwin/progressbar/main.c
@@ -23,15 +23,20 @@ int main(void) {
_createWidget();
+#if 1
gwinProgressbarSetResolution(ghProgressbar, 10);
gwinProgressbarStart(ghProgressbar, 500);
gfxSleepMilliseconds(3000);
gwinProgressbarReset(ghProgressbar);
- //gwinProgressbarSetPosition(ghProgressbar, 42);
- //gwinProgressbarIncrement(ghProgressbar);
- //gwinProgressbarDecrement(ghProgressbar);
+ gfxSleepMilliseconds(3000);
+ gwinDestroy(ghProgressbar);
+#else
+ gwinProgressbarSetPosition(ghProgressbar, 42);
+ gwinProgressbarIncrement(ghProgressbar);
+ gwinProgressbarDecrement(ghProgressbar);
+#endif
while (1) {
gfxSleepMilliseconds(500);