Fixed crash initializing the dummy driver

This commit is contained in:
Sam Lantinga
2009-12-07 08:01:58 +00:00
parent 4969fa9624
commit 8d70d2a2b2

View File

@@ -121,7 +121,7 @@ DUMMY_VideoInit(_THIS)
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;