diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2017-07-01 21:17:05 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2017-07-01 21:17:05 +0200 |
commit | e6503671eecc2026130fe3544d79d644c1657b4c (patch) | |
tree | 9e3ee3350c60b8a97a4026724e12839cbaa76b50 /src/gui/desktop.c | |
parent | f8181f1355cf8218daf2ee2153606b7eccf1cb18 (diff) | |
download | abaos-e6503671eecc2026130fe3544d79d644c1657b4c.tar.gz abaos-e6503671eecc2026130fe3544d79d644c1657b4c.tar.bz2 |
replaced some strange access to .base.base with casts of the class to the class needed to
access the proper vtable
Diffstat (limited to 'src/gui/desktop.c')
-rw-r--r-- | src/gui/desktop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/desktop.c b/src/gui/desktop.c index 08da59b..a27ac9a 100644 --- a/src/gui/desktop.c +++ b/src/gui/desktop.c @@ -30,7 +30,7 @@ void desktop_init( desktop_t *desktop, const int w, const int h, const vga_color desktop->mouse_y = h / 2; desktop->needs_redrawing = true; - desktop->base.base.vtable = (widget_vtable_t *)&desktop_vtable; + ((widget_t *)desktop)->vtable = (widget_vtable_t *)&desktop_vtable; } void desktop_draw( void *obj, graphics_context_t *context ) |