diff options
Diffstat (limited to 'src/mouse.c')
-rw-r--r-- | src/mouse.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mouse.c b/src/mouse.c index 0e1d736..46984eb 100644 --- a/src/mouse.c +++ b/src/mouse.c @@ -92,10 +92,10 @@ void mouse_init( mouse_t *mouse, mouse_event_handler_t handler, void *context ) // TODO: we should probe for wheel mouse and more than 3 packets mouse->nof_packets = DEFAULT_NOF_PACKETS; - vga_t *vga = (vga_t *)context; + vga_text_t *vga_text = (vga_text_t *)context; - mouse->res_x = vga->res_x; - mouse->res_y = vga->res_y; + mouse->res_x = vga_text->res_x; + mouse->res_y = vga_text->res_y; mouse->cursor_x = mouse->res_x / 2; mouse->cursor_y = mouse->res_y / 2; mouse->handler = handler; |