comparison src/video/x11/SDL_x11events.c @ 2324:3202e4826c57

more valgrind errors fixed. Plus I ran make indent which changed a few files.
author Bob Pendleton <bob@pendleton.com>
date Fri, 07 Mar 2008 17:20:37 +0000
parents 4ac07ae446d3
children c7bcf84ba1b9
comparison
equal deleted inserted replaced
2323:4ac07ae446d3 2324:3202e4826c57
49 wmmsg.event.xevent = xevent; 49 wmmsg.event.xevent = xevent;
50 SDL_SendSysWMEvent(&wmmsg); 50 SDL_SendSysWMEvent(&wmmsg);
51 } 51 }
52 52
53 data = NULL; 53 data = NULL;
54 if (videodata && 54 if (videodata && videodata->windowlist) {
55 videodata->windowlist) { 55 for (i = 0; i < videodata->numwindows; ++i) {
56 for (i = 0; i < videodata->numwindows; ++i) { 56 if ((videodata->windowlist[i] != NULL) &&
57 if ((videodata->windowlist[i] != NULL) && 57 (videodata->windowlist[i]->window == xevent.xany.window)) {
58 (videodata->windowlist[i]->window == xevent.xany.window)) { 58 data = videodata->windowlist[i];
59 data = videodata->windowlist[i]; 59 break;
60 break; 60 }
61 } 61 }
62 }
63 } 62 }
64 if (!data) { 63 if (!data) {
65 return; 64 return;
66 } 65 }
67 66