diff 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
line wrap: on
line diff
--- a/src/video/x11/SDL_x11events.c	Thu Mar 06 23:07:02 2008 +0000
+++ b/src/video/x11/SDL_x11events.c	Fri Mar 07 17:20:37 2008 +0000
@@ -51,15 +51,14 @@
     }
 
     data = NULL;
-    if (videodata && 
-        videodata->windowlist) {
-      for (i = 0; i < videodata->numwindows; ++i) {
-        if ((videodata->windowlist[i] != NULL) &&
-            (videodata->windowlist[i]->window == xevent.xany.window)) {
-          data = videodata->windowlist[i];
-          break;
+    if (videodata && videodata->windowlist) {
+        for (i = 0; i < videodata->numwindows; ++i) {
+            if ((videodata->windowlist[i] != NULL) &&
+                (videodata->windowlist[i]->window == xevent.xany.window)) {
+                data = videodata->windowlist[i];
+                break;
+            }
         }
-      }
     }
     if (!data) {
         return;