From ff69feb4cacb191a278395c08490b3f97e280ad6 Mon Sep 17 00:00:00 2001 From: Javier Date: Sat, 30 Apr 2022 17:04:25 +0200 Subject: workaround for programs that do not call full mouse reset --- mousetsr.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mousetsr.c') diff --git a/mousetsr.c b/mousetsr.c index 147ec2c..a03da07 100644 --- a/mousetsr.c +++ b/mousetsr.c @@ -1331,6 +1331,10 @@ static void int33_handler(union INTPACK r) dlog_puts("Mouse reset settings"); reload_video_info(); reset_mouse_settings(); + if (!data.bios_packet_size || !data.packet_size) { + // Someone is calling this without calling reset first + reset_mouse_hardware(); + } reset_mouse_state(); r.w.ax = INT33_MOUSE_FOUND; r.w.bx = NUM_BUTTONS; -- cgit v1.2.3