diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/desktop.c | 3 | ||||
-rw-r--r-- | src/gui/desktop.h | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/desktop.c b/src/gui/desktop.c index ee4a6e5..7c886b6 100644 --- a/src/gui/desktop.c +++ b/src/gui/desktop.c @@ -26,6 +26,9 @@ void desktop_init( desktop_t *desktop, const int w, const int h, const vga_color composite_widget_init( &desktop->base, NULL, 0, 0, w, h, background_color ); + desktop->mouse_x = 0; + desktop->mouse_y = 0; + desktop->vtable = &desktop_vtable; } diff --git a/src/gui/desktop.h b/src/gui/desktop.h index 1f3ef93..a8db094 100644 --- a/src/gui/desktop.h +++ b/src/gui/desktop.h @@ -12,6 +12,8 @@ typedef struct { typedef struct { composite_widget_t base; desktop_vtable_t *vtable; + int mouse_x; + int mouse_y; } desktop_t; void desktop_init( desktop_t *widget, const int w, const int h, const vga_color_t background_color ); |