All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix SDL mouse invisible wall
@ 2006-06-14 16:25 Donald D. Dugger
  2006-06-14 17:01 ` Anthony Liguori
  0 siblings, 1 reply; 3+ messages in thread
From: Donald D. Dugger @ 2006-06-14 16:25 UTC (permalink / raw)
  To: xen-devel

Thanks to Anthony Liquori off the QEMU mailing list for this SDL mouse
fix.  The new mouse code can hit situation where it won't move past
`invisible wall` on the screen.  This patch fixes that problem.


Signed-off-by: Don Dugger <donald.d.dugger@intel.com>

-- 
Don Dugger
"Censeo Toto nos in Kansa esse decisse." - D. Gale
Donald.D.Dugger@intel.com
Ph: (303)440-1368



diff -r 6bffed2aa78b tools/ioemu/sdl.c
--- a/tools/ioemu/sdl.c	Mon Jun 12 17:56:20 2006 +0100
+++ b/tools/ioemu/sdl.c	Wed Jun 14 10:10:36 2006 -0600
@@ -376,13 +376,18 @@ static void sdl_update_caption(void)
 
 static void sdl_hide_cursor(void)
 {
-    SDL_SetCursor(sdl_cursor_hidden);
+    if (kbd_mouse_is_absolute()) {
+	SDL_ShowCursor(1);
+	SDL_SetCursor(sdl_cursor_hidden);
+    } else {
+	SDL_ShowCursor(0);
+    }
 }
 
 static void sdl_show_cursor(void)
 {
     if (!kbd_mouse_is_absolute()) {
-	SDL_SetCursor(sdl_cursor_normal);
+	SDL_ShowCursor(1);
     }
 }

^ permalink raw reply	[flat|nested] 3+ messages in thread
* RE: [PATCH] Fix SDL mouse invisible wall
@ 2006-06-14 17:06 Dugger, Donald D
  0 siblings, 0 replies; 3+ messages in thread
From: Dugger, Donald D @ 2006-06-14 17:06 UTC (permalink / raw)
  To: Anthony Liguori; +Cc: xen-devel

Anthony-

Since I sent it I figured it was my responsibility (and I'm certainly
fine with that) but adding yours just guarantees we're correct.

--
Don Dugger
"Censeo Toto nos in Kansa esse decisse." - D. Gale
Donald.D.Dugger@intel.com
Ph: (303)440-1368 

>-----Original Message-----
>From: Anthony Liguori [mailto:aliguori@us.ibm.com] 
>Sent: Wednesday, June 14, 2006 11:01 AM
>To: Dugger, Donald D
>Cc: xen-devel@lists.xensource.com
>Subject: Re: [Xen-devel] [PATCH] Fix SDL mouse invisible wall
>
>It's rather curious as to whether this one needs my 
>Signed-off-by since 
>this is my patch verbatim :-)
>
>Just in case, Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> :-)
>
>Regards,
>
>Anthony Liguori
>
>Donald D. Dugger wrote:
>> Thanks to Anthony Liquori off the QEMU mailing list for this 
>SDL mouse
>> fix.  The new mouse code can hit situation where it won't move past
>> `invisible wall` on the screen.  This patch fixes that problem.
>>
>>
>> Signed-off-by: Don Dugger <donald.d.dugger@intel.com>
>>
>>   
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-06-14 17:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-14 16:25 [PATCH] Fix SDL mouse invisible wall Donald D. Dugger
2006-06-14 17:01 ` Anthony Liguori
  -- strict thread matches above, loose matches on Subject: below --
2006-06-14 17:06 Dugger, Donald D

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.