From 97697373b41ec1d337d6826d981a0cb4e75c37f0 Mon Sep 17 00:00:00 2001 From: Brad Hards Date: Sat, 9 Apr 2011 12:11:36 +1000 Subject: event: trivial coding style fixes Signed-off-by: Brad Hards Signed-off-by: Stefan Hajnoczi --- input.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'input.c') diff --git a/input.c b/input.c index ec05548f7a..5664d3a1e3 100644 --- a/input.c +++ b/input.c @@ -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); + } } } -- cgit v1.2.3