diff options
author | Joel Bodenmann <joel@unormal.org> | 2014-02-02 13:00:05 +0100 |
---|---|---|
committer | Joel Bodenmann <joel@unormal.org> | 2014-02-02 13:00:05 +0100 |
commit | e50b495c48648bf53621a4afc63682579387ba4f (patch) | |
tree | 3a8d5cc53263def1a66e1dbc169d30da0a2af957 /src/gwin/gwin.c | |
parent | 69fb0ea6ccbfb231e0fc98c2a324611cc803d691 (diff) | |
parent | 6515373b2a63a24b77ff20a26e9b18468f29a6f9 (diff) | |
download | uGFX-e50b495c48648bf53621a4afc63682579387ba4f.tar.gz uGFX-e50b495c48648bf53621a4afc63682579387ba4f.tar.bz2 uGFX-e50b495c48648bf53621a4afc63682579387ba4f.zip |
Merge branch 'master' into gfile
Diffstat (limited to 'src/gwin/gwin.c')
-rw-r--r-- | src/gwin/gwin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gwin/gwin.c b/src/gwin/gwin.c index 6b9cb81e..11dcdaf1 100644 --- a/src/gwin/gwin.c +++ b/src/gwin/gwin.c @@ -102,7 +102,7 @@ void _gwinInit(void) { GHandle _gwindowCreate(GDisplay *g, GWindowObject *pgw, const GWindowInit *pInit, const gwinVMT *vmt, uint16_t flags) { // Allocate the structure if necessary if (!pgw) { - if (!(pgw = (GWindowObject *)gfxAlloc(vmt->size))) + if (!(pgw = gfxAlloc(vmt->size))) return 0; pgw->flags = flags|GWIN_FLG_DYNAMIC; } else |