aboutsummaryrefslogtreecommitdiffstats
path: root/src/gwin/slider.c
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2014-05-21 13:02:00 +1000
committerinmarket <andrewh@inmarket.com.au>2014-05-21 13:02:00 +1000
commit34e23320b4c69f5e409f25431603d901abfc4740 (patch)
tree2959d9c395b5364243a267229779e8afd8ee094d /src/gwin/slider.c
parent7afe4e78b7ffd2150f7eba51d6613422ccc7abe5 (diff)
downloaduGFX-34e23320b4c69f5e409f25431603d901abfc4740.tar.gz
uGFX-34e23320b4c69f5e409f25431603d901abfc4740.tar.bz2
uGFX-34e23320b4c69f5e409f25431603d901abfc4740.zip
Significant changes to the window redrawing methodology.
Move and Resize should probably work for containers now Still to be tested - nested containers, progressbar timers while redrawing its container, move/resize on containers.
Diffstat (limited to 'src/gwin/slider.c')
-rw-r--r--src/gwin/slider.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gwin/slider.c b/src/gwin/slider.c
index e066f798..b488f823 100644
--- a/src/gwin/slider.c
+++ b/src/gwin/slider.c
@@ -69,7 +69,7 @@ static void ResetDisplayPos(GSliderObject *gsw) {
if (x < 0 || x >= gh->width || y < 0 || y >= gh->height) {
// No - restore the slider
ResetDisplayPos(gsw);
- _gwidgetUpdate(gh);
+ _gwinUpdate(gh);
return;
}
#endif
@@ -92,7 +92,7 @@ static void ResetDisplayPos(GSliderObject *gsw) {
}
ResetDisplayPos(gsw);
- _gwidgetUpdate(gh);
+ _gwinUpdate(gh);
// Generate the event
SendSliderEvent(gw);
@@ -122,7 +122,7 @@ static void ResetDisplayPos(GSliderObject *gsw) {
}
// Update the display
- _gwidgetUpdate(&gw->g);
+ _gwinUpdate(&gw->g);
#undef gsw
}
#endif
@@ -164,7 +164,7 @@ static void ResetDisplayPos(GSliderObject *gsw) {
gsw->pos = (uint16_t)((uint32_t)value*(gsw->max-gsw->min)/max + gsw->min);
ResetDisplayPos(gsw);
- _gwidgetUpdate((GHandle)gw);
+ _gwinUpdate((GHandle)gw);
// Generate the event
SendSliderEvent(gw);
@@ -267,7 +267,7 @@ void gwinSliderSetPosition(GHandle gh, int pos) {
else gsw->pos = pos;
}
ResetDisplayPos(gsw);
- _gwidgetUpdate(gh);
+ _gwinUpdate(gh);
#undef gsw
}