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/graph.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/graph.c')
-rw-r--r-- | src/gwin/graph.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gwin/graph.c b/src/gwin/graph.c index 8f7223e1..4fcfad37 100644 --- a/src/gwin/graph.c +++ b/src/gwin/graph.c @@ -208,7 +208,7 @@ void gwinGraphDrawAxis(GHandle gh) { #define gg ((GGraphObject *)gh) coord_t i, xmin, ymin, xmax, ymax; - if (gh->vmt != &graphVMT) + if (gh->vmt != &graphVMT || !_gwinDrawStart(gh)) return; xmin = -gg->xorigin; @@ -262,6 +262,7 @@ void gwinGraphDrawAxis(GHandle gh) { } } + _gwinDrawEnd(gh); #undef gg } @@ -275,7 +276,7 @@ void gwinGraphStartSet(GHandle gh) { void gwinGraphDrawPoint(GHandle gh, coord_t x, coord_t y) { #define gg ((GGraphObject *)gh) - if (gh->vmt != &graphVMT) + if (gh->vmt != &graphVMT || !_gwinDrawStart(gh)) return; if ((gh->flags & GGRAPH_FLG_CONNECTPOINTS)) { @@ -295,6 +296,7 @@ void gwinGraphDrawPoint(GHandle gh, coord_t x, coord_t y) { // Draw this point. pointto(gg, x, y, &gg->style.point); + _gwinDrawEnd(gh); #undef gg } @@ -303,7 +305,7 @@ void gwinGraphDrawPoints(GHandle gh, const point *points, unsigned count) { unsigned i; const point *p; - if (gh->vmt != &graphVMT) + if (gh->vmt != &graphVMT || !_gwinDrawStart(gh)) return; // Draw the connecting lines @@ -329,6 +331,7 @@ void gwinGraphDrawPoints(GHandle gh, const point *points, unsigned count) { for(p = points, i = 0; i < count; p++, i++) pointto(gg, p->x, p->y, &gg->style.point); + _gwinDrawEnd(gh); #undef gg } |