comparison src/video/x11/SDL_x11mouse.c @ 2952:79dee7da6ba5

Date: Fri, 02 Jan 2009 00:54:48 +0100 From: Couriersud Subject: SDL1.3 Two small bugs ... The first bug is rather straight forward; XCloseDevice needs a device, not an ID.
author Sam Lantinga <slouken@libsdl.org>
date Fri, 02 Jan 2009 01:34:52 +0000
parents 1e431c2631ee
children 1e242954330b
comparison
equal deleted inserted replaced
2951:268073d5a40d 2952:79dee7da6ba5
29 X11_FreeMouse(SDL_Mouse * mouse) 29 X11_FreeMouse(SDL_Mouse * mouse)
30 { 30 {
31 X11_MouseData *data = (X11_MouseData *) mouse->driverdata; 31 X11_MouseData *data = (X11_MouseData *) mouse->driverdata;
32 32
33 if (data) { 33 if (data) {
34 XCloseDevice(data->display, mouse->id); 34 XCloseDevice(data->display, data->device);
35 SDL_free(data); 35 SDL_free(data);
36 } 36 }
37 } 37 }
38 #endif 38 #endif
39 39