aboutsummaryrefslogtreecommitdiffstats
path: root/src/gwin/gwin.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gwin/gwin.c')
-rw-r--r--src/gwin/gwin.c2
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