* [Qemu-devel] [PATCH] event: trivial coding style fixes.
@ 2011-04-09 2:11 Brad Hards
2011-04-09 11:21 ` Stefan Hajnoczi
0 siblings, 1 reply; 2+ messages in thread
From: Brad Hards @ 2011-04-09 2:11 UTC (permalink / raw)
To: qemu-devel, trivial-patches
Signed-off-by: Brad Hards <bradh@frogmouth.net>
---
input.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/input.c b/input.c
index ec05548..5664d3a 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);
+ }
}
}
--
1.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [PATCH] event: trivial coding style fixes.
2011-04-09 2:11 [Qemu-devel] [PATCH] event: trivial coding style fixes Brad Hards
@ 2011-04-09 11:21 ` Stefan Hajnoczi
0 siblings, 0 replies; 2+ messages in thread
From: Stefan Hajnoczi @ 2011-04-09 11:21 UTC (permalink / raw)
To: Brad Hards; +Cc: trivial-patches, qemu-devel
On Sat, Apr 09, 2011 at 12:11:36PM +1000, Brad Hards wrote:
>
> Signed-off-by: Brad Hards <bradh@frogmouth.net>
> ---
> input.c | 14 +++++++-------
> 1 files changed, 7 insertions(+), 7 deletions(-)
The rest of the file follows the coding style, so I guess this change is
reasonable.
Merged into the trivial patches tree:
git://repo.or.cz/qemu/stefanha.git trivial-patches
A pull request will be sent to merge this into qemu.git. For more
information, see http://wiki.qemu.org/Contribute/TrivialPatches.
Stefan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-04-09 11:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-09 2:11 [Qemu-devel] [PATCH] event: trivial coding style fixes Brad Hards
2011-04-09 11:21 ` Stefan Hajnoczi
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).