src/render/SDL_render.c
changeset 5166 4d39eeaad00b
parent 5158 b3ccd1947786
child 5180 4d098d286794
--- a/src/render/SDL_render.c	Thu Feb 03 11:16:57 2011 -0800
+++ b/src/render/SDL_render.c	Thu Feb 03 15:49:37 2011 -0800
@@ -26,6 +26,7 @@
 #include "SDL_render.h"
 #include "SDL_sysrender.h"
 #include "../video/SDL_pixels_c.h"
+#include "software/SDL_renderer_sw_c.h"
 
 
 #define CHECK_RENDERER_MAGIC(renderer, retval) \
@@ -137,12 +138,19 @@
 
     if (renderer) {
         renderer->magic = &renderer_magic;
+        renderer->window = window;
 
         SDL_AddEventWatch(SDL_RendererEventWatch, renderer);
     }
     return renderer;
 }
 
+SDL_Renderer *
+SDL_CreateSoftwareRenderer(SDL_Surface * surface)
+{
+    return SW_CreateRendererForSurface(surface);
+}
+
 int
 SDL_GetRendererInfo(SDL_Renderer * renderer, SDL_RendererInfo * info)
 {