Commit f227f17d1b4f21b681c94efce859b9094482b7e6

Authored by balrog
1 parent 88d2c950

Fix the sendkey hold time calculation (Jan Kiszka).


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4703 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 2 additions and 2 deletions
monitor.c
... ... @@ -982,8 +982,8 @@ static void do_sendkey(const char *string, int has_hold_time, int hold_time)
982 982 kbd_put_keycode(keycode & 0x7f);
983 983 }
984 984 /* delayed key up events */
985   - qemu_mod_timer(key_timer,
986   - qemu_get_clock(vm_clock) + ticks_per_sec * hold_time);
  985 + qemu_mod_timer(key_timer, qemu_get_clock(vm_clock) +
  986 + muldiv64(ticks_per_sec, hold_time, 1000));
987 987 }
988 988  
989 989 static int mouse_button_state;
... ...