sim-card
/
qemu
Archived
10
0
Fork 0

Fix the sendkey hold time calculation (Jan Kiszka).

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4703 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
balrog 2008-06-09 00:03:47 +00:00
parent 88d2c950b0
commit f227f17d1b
1 changed files with 2 additions and 2 deletions

View File

@ -982,8 +982,8 @@ static void do_sendkey(const char *string, int has_hold_time, int hold_time)
kbd_put_keycode(keycode & 0x7f); kbd_put_keycode(keycode & 0x7f);
} }
/* delayed key up events */ /* delayed key up events */
qemu_mod_timer(key_timer, qemu_mod_timer(key_timer, qemu_get_clock(vm_clock) +
qemu_get_clock(vm_clock) + ticks_per_sec * hold_time); muldiv64(ticks_per_sec, hold_time, 1000));
} }
static int mouse_button_state; static int mouse_button_state;