Skip to contentSkip to conversation

[4703] Fix the sendkey hold time calculation (Jan Kiszka).

Qemu-devel Andrzej Zaborowski 1 participant 1 message Jun 9, 2008

lore
Share & tools
lore
#0 lore raw

Revision: 4703

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4703
Author:   balrog
Date:     2008-06-09 00:03:47 +0000 (Mon, 09 Jun 2008)

Log Message:
-----------
Fix the sendkey hold time calculation (Jan Kiszka).

Modified Paths:
--------------
trunk/monitor.c

Modified: trunk/monitor.c
===================================================================

monitor.c +2 -2
@@ -982,8 +982,8 @@
         kbd_put_keycode(keycode & 0x7f);
     }
     /* delayed key up events */
-    qemu_mod_timer(key_timer,
-                   qemu_get_clock(vm_clock) + ticks_per_sec * hold_time);
+    qemu_mod_timer(key_timer, qemu_get_clock(vm_clock) +
+                    muldiv64(ticks_per_sec, hold_time, 1000));
 }
 
 static int mouse_button_state;