src/render/SDL_render.c
changeset 5166 4d39eeaad00b
parent 5158 b3ccd1947786
child 5180 4d098d286794
     1.1 --- a/src/render/SDL_render.c	Thu Feb 03 11:16:57 2011 -0800
     1.2 +++ b/src/render/SDL_render.c	Thu Feb 03 15:49:37 2011 -0800
     1.3 @@ -26,6 +26,7 @@
     1.4  #include "SDL_render.h"
     1.5  #include "SDL_sysrender.h"
     1.6  #include "../video/SDL_pixels_c.h"
     1.7 +#include "software/SDL_renderer_sw_c.h"
     1.8  
     1.9  
    1.10  #define CHECK_RENDERER_MAGIC(renderer, retval) \
    1.11 @@ -137,12 +138,19 @@
    1.12  
    1.13      if (renderer) {
    1.14          renderer->magic = &renderer_magic;
    1.15 +        renderer->window = window;
    1.16  
    1.17          SDL_AddEventWatch(SDL_RendererEventWatch, renderer);
    1.18      }
    1.19      return renderer;
    1.20  }
    1.21  
    1.22 +SDL_Renderer *
    1.23 +SDL_CreateSoftwareRenderer(SDL_Surface * surface)
    1.24 +{
    1.25 +    return SW_CreateRendererForSurface(surface);
    1.26 +}
    1.27 +
    1.28  int
    1.29  SDL_GetRendererInfo(SDL_Renderer * renderer, SDL_RendererInfo * info)
    1.30  {