sim-card
/
qemu
Archived
10
0
Fork 0

event: trivial coding style fixes

Signed-off-by: Brad Hards <bradh@frogmouth.net>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
This commit is contained in:
Brad Hards 2011-04-09 12:11:36 +10:00 committed by Stefan Hajnoczi
parent f95857b34d
commit 97697373b4
1 changed files with 7 additions and 7 deletions

14
input.c
View File

@ -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);
}
}
}