Re: [Qemu-devel] [PATCH] input: sdl: fix guest_cursor logic.
On 03/10/2014 01:23 AM, Gerd Hoffmann wrote: > +if (guest_cursor) { > +x -= guest_x; > +y -= guest_y; > +guest_x += x; > +guest_y += y; > +dx = x; > +dy = y; > +} Why write it in this funny way? Surely better
[Qemu-devel] [PATCH] input: sdl: fix guest_cursor logic.
Unbreaks relative mouse mode with SDL. Reported-by: Gabriel L. Somlo Signed-off-by: Gerd Hoffmann --- ui/sdl.c | 18 +++--- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/ui/sdl.c b/ui/sdl.c index c1a16be..4e7f920 100644 --- a/ui/sdl.c +++ b/ui/sdl.c @@ -455,13 +455,