* [Qemu-devel] [4703] Fix the sendkey hold time calculation (Jan Kiszka).
@ 2008-06-09 0:03 Andrzej Zaborowski
0 siblings, 0 replies; only message in thread
From: Andrzej Zaborowski @ 2008-06-09 0:03 UTC (permalink / raw)
To: qemu-devel
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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-06-09 0:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-09 0:03 [Qemu-devel] [4703] Fix the sendkey hold time calculation (Jan Kiszka) Andrzej Zaborowski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).