diff src/video/x11/SDL_x11window.c @ 2321:c5feceb0395e

SetupWindowData in SDL_X11window.c was realloc()ing the display window list and incrementing numwindows even though those are being updated in functions that call this function. The result is that it is possible to get the same window added to the list twice.
author Bob Pendleton <bob@pendleton.com>
date Tue, 04 Mar 2008 23:09:28 +0000
parents e7164a4dac62
children c25d45b7add3
line wrap: on
line diff
--- a/src/video/x11/SDL_x11window.c	Sat Mar 01 20:34:36 2008 +0000
+++ b/src/video/x11/SDL_x11window.c	Tue Mar 04 23:09:28 2008 +0000
@@ -477,7 +477,7 @@
 }
 
 int
-X11_CreateWindowFrom(_THIS, SDL_Window * window, const void *data)
+X11_CreateWindowFrom(_THIS, SDL_Window *window, const void *data)
 {
     Window w = (Window) data;