diff src/video/x11/SDL_x11mouse.c @ 3761:e0c95ad1ba87 gsoc2008_manymouse

Major bug fixes
author Szymon Wilczek <kazeuser@gmail.com>
date Thu, 19 Jun 2008 17:24:30 +0000
parents 64f346a83ed3
children 24db5d326f57
line wrap: on
line diff
--- a/src/video/x11/SDL_x11mouse.c	Fri Jun 06 15:23:29 2008 +0000
+++ b/src/video/x11/SDL_x11mouse.c	Thu Jun 19 17:24:30 2008 +0000
@@ -37,7 +37,7 @@
     SDL_VideoData *data = (SDL_VideoData *) _this->driverdata;
    
     DevList=XListInputDevices(data->display, &numOfDevices);
-
+    SDL_XDevices=(XDevice**) SDL_malloc(sizeof(XDevice));
     for(i=0;i<numOfDevices;++i)
     {
         if((DevList[i].use!=IsXPointer && DevList[i].use!=IsXKeyboard))