comparison 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
comparison
equal deleted inserted replaced
2118:238db749017a 2119:9341a884a4d9
1351 } 1351 }
1352 1352
1353 void 1353 void
1354 SDL_AddRenderDriver(int displayIndex, const SDL_RenderDriver * driver) 1354 SDL_AddRenderDriver(int displayIndex, const SDL_RenderDriver * driver)
1355 { 1355 {
1356 SDL_VideoDisplay *display = &_this->displays[displayIndex]; 1356 SDL_VideoDisplay *display;
1357 SDL_RenderDriver *render_drivers; 1357 SDL_RenderDriver *render_drivers;
1358
1359 if (displayIndex >= _this->num_displays) {
1360 return;
1361 }
1362 display = &_this->displays[displayIndex];
1358 1363
1359 render_drivers = 1364 render_drivers =
1360 SDL_realloc(display->render_drivers, 1365 SDL_realloc(display->render_drivers,
1361 (display->num_render_drivers + 1366 (display->num_render_drivers +
1362 1) * sizeof(*render_drivers)); 1367 1) * sizeof(*render_drivers));