]> git.proxmox.com Git - qemu.git/commitdiff
event: trivial coding style fixes
authorBrad Hards <bradh@frogmouth.net>
Sat, 9 Apr 2011 02:11:36 +0000 (12:11 +1000)
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Sat, 9 Apr 2011 09:56:17 +0000 (10:56 +0100)
Signed-off-by: Brad Hards <bradh@frogmouth.net>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
input.c

diff --git a/input.c b/input.c
index ec05548f7a75f961d7ef22cf59250f0cf6f78f3e..5664d3a1e3e009dadf07eede7ef2bc8abcc43973 100644 (file)
--- 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);
+        }
     }
 }