From 96d1781a9ba365baef0f89ef85a2b103bfd6370a Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sun, 25 Jun 2017 09:35:29 +0200 Subject: put the mouse object into the global context so we can adjust the resolution when switching video modes --- src/gui/desktop.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gui/desktop.h') 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 ); -- cgit v1.2.3-54-g00ecf