Mercurial > sdl-ios-xcode
comparison src/video/x11/SDL_x11mouse.c @ 3777:54d08ecec1cb gsoc2008_manymouse
Sharpened code looks and a minor events upgrade
author | Szymon Wilczek <kazeuser@gmail.com> |
---|---|
date | Wed, 06 Aug 2008 09:29:32 +0000 |
parents | e5011833348a |
children |
comparison
equal
deleted
inserted
replaced
3776:a9c2a7071874 | 3777:54d08ecec1cb |
---|---|
57 | 57 |
58 newDevices= (XDevice**) SDL_realloc(SDL_XDevices, (index+1)*sizeof(*newDevices)); | 58 newDevices= (XDevice**) SDL_realloc(SDL_XDevices, (index+1)*sizeof(*newDevices)); |
59 if(!newDevices) | 59 if(!newDevices) |
60 { | 60 { |
61 SDL_OutOfMemory(); | 61 SDL_OutOfMemory(); |
62 return -1; | 62 return; |
63 } | 63 } |
64 SDL_XDevices=newDevices; | 64 SDL_XDevices=newDevices; |
65 SDL_XDevices[index]=XOpenDevice(data->display,DevList[i].id); | 65 SDL_XDevices[index]=XOpenDevice(data->display,DevList[i].id); |
66 SDL_zero(mouse); | 66 SDL_zero(mouse); |
67 | 67 |