comparison src/video/dummy/SDL_nullvideo.c @ 3532:101f94947013

Fixed crash initializing the dummy driver
author Sam Lantinga <slouken@libsdl.org>
date Mon, 07 Dec 2009 08:01:58 +0000
parents 83518f8fcd61
children f7b03b6838cb
comparison
equal deleted inserted replaced
3531:61b7f5821576 3532:101f94947013
119 return -1; 119 return -1;
120 } 120 }
121 SDL_AddRenderDriver(&_this->displays[0], &SDL_DUMMY_RenderDriver); 121 SDL_AddRenderDriver(&_this->displays[0], &SDL_DUMMY_RenderDriver);
122 122
123 SDL_zero(mode); 123 SDL_zero(mode);
124 SDL_AddDisplayMode(0, &mode); 124 SDL_AddDisplayMode(&_this->displays[0], &mode);
125 125
126 /* We're done! */ 126 /* We're done! */
127 return 0; 127 return 0;
128 } 128 }
129 129