diff options
author | inmarket <andrewh@inmarket.com.au> | 2013-06-08 02:27:59 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2013-06-08 02:27:59 +1000 |
commit | 777ec6af7c1b594f7b7a9cbaaf7ead90d8fb7e8f (patch) | |
tree | 2827629985d75e63f53b3de689d52a5080404780 /src/gwin/graph.c | |
parent | 663caba66214acdb6170903f6a203740ea1de8b9 (diff) | |
download | uGFX-777ec6af7c1b594f7b7a9cbaaf7ead90d8fb7e8f.tar.gz uGFX-777ec6af7c1b594f7b7a9cbaaf7ead90d8fb7e8f.tar.bz2 uGFX-777ec6af7c1b594f7b7a9cbaaf7ead90d8fb7e8f.zip |
Add a simple GWIN window manager, Change the way GWIN visibility works
Diffstat (limited to 'src/gwin/graph.c')
-rw-r--r-- | src/gwin/graph.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gwin/graph.c b/src/gwin/graph.c index 0ae9822b..393297e7 100644 --- a/src/gwin/graph.c +++ b/src/gwin/graph.c @@ -32,6 +32,7 @@ static const GGraphStyle GGraphDefaultStyle = { static const gwinVMT graphVMT = { "Graph", // The classname 0, // The destroy routine + 0, // The redraw routine 0, // The after-clear routine }; @@ -164,7 +165,7 @@ static void lineto(GGraphObject *gg, coord_t x0, coord_t y0, coord_t x1, coord_t } GHandle gwinCreateGraph(GGraphObject *gg, coord_t x, coord_t y, coord_t width, coord_t height) { - if (!(gg = (GGraphObject *)_gwinInit((GWindowObject *)gg, x, y, width, height, sizeof(GGraphObject), &graphVMT))) + if (!(gg = (GGraphObject *)_gwindowInit((GWindowObject *)gg, x, y, width, height, sizeof(GGraphObject), &graphVMT, GWIN_FLG_VISIBLE))) return 0; gg->xorigin = gg->yorigin = 0; gg->lastx = gg->lasty = 0; |