diff options
author | inmarket <andrewh@inmarket.com.au> | 2014-05-10 01:11:30 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2014-05-10 01:11:30 +1000 |
commit | cb606359cccd09f00f27db93bb99fb06a3b49abd (patch) | |
tree | 73ad7fd5a73ff43e3ba074a609cc2385372ee01c /src/gwin/progressbar.c | |
parent | 21aac3d8532c9aa1decab30c00d9f5a37067aa13 (diff) | |
download | uGFX-cb606359cccd09f00f27db93bb99fb06a3b49abd.tar.gz uGFX-cb606359cccd09f00f27db93bb99fb06a3b49abd.tar.bz2 uGFX-cb606359cccd09f00f27db93bb99fb06a3b49abd.zip |
Multiple changes to GWIN to support containers.
Diffstat (limited to 'src/gwin/progressbar.c')
-rw-r--r-- | src/gwin/progressbar.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gwin/progressbar.c b/src/gwin/progressbar.c index 524a5346..ca267f0c 100644 --- a/src/gwin/progressbar.c +++ b/src/gwin/progressbar.c @@ -128,7 +128,7 @@ void gwinProgressbarSetPosition(GHandle gh, int pos) { } ResetDisplayPos(gsw); - _gwidgetRedraw(gh); + _gwidgetUpdate(gh); #undef gsw } @@ -159,7 +159,7 @@ void gwinProgressbarIncrement(GHandle gh) { gsw->pos = gsw->max; ResetDisplayPos(gsw); - _gwidgetRedraw(gh); + _gwidgetUpdate(gh); #undef gsw } @@ -178,7 +178,7 @@ void gwinProgressbarDecrement(GHandle gh) { gsw->pos -= gsw->res; ResetDisplayPos(gsw); - _gwidgetRedraw(gh); + _gwidgetUpdate(gh); #undef gsw } @@ -239,7 +239,7 @@ void gwinProgressbarDraw_Std(GWidgetObject *gw, void *param) { return; // get the colors right - if ((gw->g.flags & GWIN_FLG_ENABLED)) + if ((gw->g.flags & GWIN_FLG_SYSENABLED)) pcol = &gw->pstyle->pressed; else pcol = &gw->pstyle->disabled; @@ -277,7 +277,7 @@ void gwinProgressbarDraw_Image(GWidgetObject *gw, void *param) { if (gw->g.vmt != (gwinVMT *)&progressbarVMT) return; - if ((gw->g.flags & GWIN_FLG_ENABLED)) + if ((gw->g.flags & GWIN_FLG_SYSENABLED)) pcol = &gw->pstyle->pressed; else pcol = &gw->pstyle->disabled; |