# HG changeset patch # User Sam Lantinga # Date 1260172918 0 # Node ID 101f94947013d258f35af789990db45938c058f7 # Parent 61b7f5821576b035ebf3498b15810263c8666a51 Fixed crash initializing the dummy driver diff -r 61b7f5821576 -r 101f94947013 src/video/dummy/SDL_nullvideo.c --- a/src/video/dummy/SDL_nullvideo.c Mon Dec 07 08:01:20 2009 +0000 +++ b/src/video/dummy/SDL_nullvideo.c Mon Dec 07 08:01:58 2009 +0000 @@ -121,7 +121,7 @@ SDL_AddRenderDriver(&_this->displays[0], &SDL_DUMMY_RenderDriver); SDL_zero(mode); - SDL_AddDisplayMode(0, &mode); + SDL_AddDisplayMode(&_this->displays[0], &mode); /* We're done! */ return 0;