Fixed crash initializing the dummy driver
authorSam Lantinga <slouken@libsdl.org>
Mon, 07 Dec 2009 08:01:58 +0000
changeset 3532 101f94947013
parent 3531 61b7f5821576
child 3533 40b9b0177e9a
Fixed crash initializing the dummy driver
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;