Mercurial > sdl-ios-xcode
diff src/video/SDL_video.c @ 2119:9341a884a4d9
Fixed running on Windows under VMware
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 14 Jun 2007 06:32:36 +0000 |
parents | 46661504398c |
children | 3ee59c43d784 |
line wrap: on
line diff
--- a/src/video/SDL_video.c Wed Jun 13 08:02:43 2007 +0000 +++ b/src/video/SDL_video.c Thu Jun 14 06:32:36 2007 +0000 @@ -1353,9 +1353,14 @@ void SDL_AddRenderDriver(int displayIndex, const SDL_RenderDriver * driver) { - SDL_VideoDisplay *display = &_this->displays[displayIndex]; + SDL_VideoDisplay *display; SDL_RenderDriver *render_drivers; + if (displayIndex >= _this->num_displays) { + return; + } + display = &_this->displays[displayIndex]; + render_drivers = SDL_realloc(display->render_drivers, (display->num_render_drivers +