comparison 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
comparison
equal deleted inserted replaced
2320:166400aa33d7 2321:c5feceb0395e
475 } 475 }
476 return 0; 476 return 0;
477 } 477 }
478 478
479 int 479 int
480 X11_CreateWindowFrom(_THIS, SDL_Window * window, const void *data) 480 X11_CreateWindowFrom(_THIS, SDL_Window *window, const void *data)
481 { 481 {
482 Window w = (Window) data; 482 Window w = (Window) data;
483 483
484 /* FIXME: Query the title from the existing window */ 484 /* FIXME: Query the title from the existing window */
485 485