diff options
author | inmarket <andrewh@inmarket.com.au> | 2014-05-21 13:02:00 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2014-05-21 13:02:00 +1000 |
commit | 34e23320b4c69f5e409f25431603d901abfc4740 (patch) | |
tree | 2959d9c395b5364243a267229779e8afd8ee094d /src/gwin/gwidget.c | |
parent | 7afe4e78b7ffd2150f7eba51d6613422ccc7abe5 (diff) | |
download | uGFX-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/gwidget.c')
-rw-r--r-- | src/gwin/gwidget.c | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/src/gwin/gwidget.c b/src/gwin/gwidget.c index ccfbd26e..8ccb47fc 100644 --- a/src/gwin/gwidget.c +++ b/src/gwin/gwidget.c @@ -292,16 +292,6 @@ void _gwidgetRedraw(GHandle gh) { gw->fnDraw(gw, gw->fnParam); } -void _gwidgetUpdate(GHandle gh) { - if (!(gh->flags & GWIN_FLG_SYSVISIBLE)) - return; - - #if GDISP_NEED_CLIP - gdispGSetClip(gh->display, gh->x, gh->y, gh->width, gh->height); - #endif - gw->fnDraw(gw, gw->fnParam); -} - void gwinWidgetClearInit(GWidgetInit *pwi) { char *p; unsigned len; @@ -364,7 +354,7 @@ void gwinSetText(GHandle gh, const char *text, bool_t useAlloc) { gw->text = (const char *)str; } else gw->text = text; - _gwidgetUpdate(gh); + _gwinUpdate(gh); } const char *gwinGetText(GHandle gh) { @@ -380,7 +370,7 @@ void gwinSetStyle(GHandle gh, const GWidgetStyle *pstyle) { gw->pstyle = pstyle ? pstyle : defaultStyle; gh->bgcolor = pstyle->background; gh->color = pstyle->enabled.text; - _gwidgetUpdate(gh); + _gwinUpdate(gh); } const GWidgetStyle *gwinGetStyle(GHandle gh) { @@ -396,7 +386,7 @@ void gwinSetCustomDraw(GHandle gh, CustomWidgetDrawFunction fn, void *param) { gw->fnDraw = fn ? fn : wvmt->DefaultDraw; gw->fnParam = param; - _gwidgetUpdate(gh); + _gwinUpdate(gh); } bool_t gwinAttachListener(GListener *pl) { |