From patchwork Sat Apr 9 02:11:36 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brad Hards X-Patchwork-Id: 90445 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 60451B6F0A for ; Sat, 9 Apr 2011 12:12:24 +1000 (EST) Received: from localhost ([127.0.0.1]:47416 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q8Nev-00014S-2M for incoming@patchwork.ozlabs.org; Fri, 08 Apr 2011 22:12:21 -0400 Received: from [140.186.70.92] (port=41214 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q8NeK-00010M-7J for qemu-devel@nongnu.org; Fri, 08 Apr 2011 22:11:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q8NeI-0002xt-U7 for qemu-devel@nongnu.org; Fri, 08 Apr 2011 22:11:44 -0400 Received: from ipmail05.adl6.internode.on.net ([150.101.137.143]:36193) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q8NeI-0002xQ-JZ for qemu-devel@nongnu.org; Fri, 08 Apr 2011 22:11:42 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqUDAIC+n02WZXPNgWdsb2JhbACmLwEBFiYlwwmFbQQ Received: from ppp115-205.static.internode.on.net (HELO incana.localnet) ([150.101.115.205]) by ipmail05.adl6.internode.on.net with ESMTP; 09 Apr 2011 11:41:39 +0930 From: Brad Hards To: qemu-devel@nongnu.org, trivial-patches@qemu.org Date: Sat, 9 Apr 2011 12:11:36 +1000 User-Agent: KMail/1.13.5 (Linux/2.6.35-28-generic; KDE/4.5.1; x86_64; ; ) MIME-Version: 1.0 Message-Id: <201104091211.36963.bradh@frogmouth.net> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 150.101.137.143 Cc: Subject: [Qemu-devel] [PATCH] event: trivial coding style fixes. X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Brad Hards --- 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); + } } }