From 34e23320b4c69f5e409f25431603d901abfc4740 Mon Sep 17 00:00:00 2001 From: inmarket Date: Wed, 21 May 2014 13:02:00 +1000 Subject: 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. --- src/gwin/slider.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/gwin/slider.c') 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 } -- cgit v1.2.3