diff 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
line wrap: on
line diff
--- 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;