changeset 3532:101f94947013

Fixed crash initializing the dummy driver
author Sam Lantinga <slouken@libsdl.org>
date Mon, 07 Dec 2009 08:01:58 +0000
parents 61b7f5821576
children 40b9b0177e9a
files src/video/dummy/SDL_nullvideo.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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;