Mercurial > sdl-ios-xcode
diff src/video/x11/SDL_x11mouse.c @ 2962:1e242954330b
Hopefully fixed crash when there are no input devices
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Fri, 02 Jan 2009 10:30:53 +0000 |
parents | 79dee7da6ba5 |
children | dbff5769d742 |
line wrap: on
line diff
--- a/src/video/x11/SDL_x11mouse.c Fri Jan 02 09:50:25 2009 +0000 +++ b/src/video/x11/SDL_x11mouse.c Fri Jan 02 10:30:53 2009 +0000 @@ -61,6 +61,7 @@ } /* we're getting the list of input devices */ + n = 0; DevList = XListInputDevices(display, &n); /* we're aquiring valuators: mice, tablets, etc. */