[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [4703] Fix the sendkey hold time calculation (Jan Kiszka).
From: |
Andrzej Zaborowski |
Subject: |
[Qemu-devel] [4703] Fix the sendkey hold time calculation (Jan Kiszka). |
Date: |
Mon, 09 Jun 2008 00:03:47 +0000 |
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
===================================================================
--- trunk/monitor.c 2008-06-09 00:03:13 UTC (rev 4702)
+++ trunk/monitor.c 2008-06-09 00:03:47 UTC (rev 4703)
@@ -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;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [4703] Fix the sendkey hold time calculation (Jan Kiszka).,
Andrzej Zaborowski <=