diff options
author | Brad Hards <bradh@frogmouth.net> | 2011-04-09 12:11:36 +1000 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> | 2011-04-09 10:56:17 +0100 |
commit | 97697373b41ec1d337d6826d981a0cb4e75c37f0 (patch) | |
tree | d51892d882f137d652ce8c1c99ada3540172f1ed /input.c | |
parent | f95857b34d284895816f2091ef4fc6d9460ebf3b (diff) | |
download | qemu-97697373b41ec1d337d6826d981a0cb4e75c37f0.zip qemu-97697373b41ec1d337d6826d981a0cb4e75c37f0.tar.gz qemu-97697373b41ec1d337d6826d981a0cb4e75c37f0.tar.bz2 |
event: trivial coding style fixes
Signed-off-by: Brad Hards <bradh@frogmouth.net>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Diffstat (limited to 'input.c')
-rw-r--r-- | input.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -161,15 +161,15 @@ void kbd_mouse_event(int dx, int dy, int dz, int buttons_state) if (mouse_event) { if (graphic_rotate) { - if (entry->qemu_put_mouse_event_absolute) + if (entry->qemu_put_mouse_event_absolute) { width = 0x7fff; - else + } else { width = graphic_width - 1; - mouse_event(mouse_event_opaque, - width - dy, dx, dz, buttons_state); - } else - mouse_event(mouse_event_opaque, - dx, dy, dz, buttons_state); + } + mouse_event(mouse_event_opaque, width - dy, dx, dz, buttons_state); + } else { + mouse_event(mouse_event_opaque, dx, dy, dz, buttons_state); + } } } |