diff src/video/win32/SDL_gdirender.c @ 3520:83518f8fcd61

Fixed calls to SDL_AddRenderDriver()
author Sam Lantinga <slouken@libsdl.org>
date Fri, 04 Dec 2009 08:45:08 +0000
parents 7f684f249ec9
children 9d129e1d0782
line wrap: on
line diff
--- a/src/video/win32/SDL_gdirender.c	Fri Dec 04 08:26:32 2009 +0000
+++ b/src/video/win32/SDL_gdirender.c	Fri Dec 04 08:45:08 2009 +0000
@@ -147,7 +147,10 @@
 void
 GDI_AddRenderDriver(_THIS)
 {
-    SDL_AddRenderDriver(0, &GDI_RenderDriver);
+    int i;
+    for (i = 0; i < _this->num_displays; ++i) {
+        SDL_AddRenderDriver(&_this->displays[i], &GDI_RenderDriver);
+    }
 }
 
 SDL_Renderer *