src/render/software/SDL_renderer_sw.c
changeset 5157 657543cc92f9
parent 5156 307ccc9c135e
child 5163 d72793305335
     1.1 --- a/src/render/software/SDL_renderer_sw.c	Thu Feb 03 00:19:40 2011 -0800
     1.2 +++ b/src/render/software/SDL_renderer_sw.c	Thu Feb 03 00:22:18 2011 -0800
     1.3 @@ -53,8 +53,6 @@
     1.4                           const SDL_Rect * srcrect, const SDL_Rect * dstrect);
     1.5  static int SW_RenderReadPixels(SDL_Renderer * renderer, const SDL_Rect * rect,
     1.6                                 Uint32 format, void * pixels, int pitch);
     1.7 -static int SW_RenderWritePixels(SDL_Renderer * renderer, const SDL_Rect * rect,
     1.8 -                                Uint32 format, const void * pixels, int pitch);
     1.9  static void SW_RenderPresent(SDL_Renderer * renderer);
    1.10  static void SW_DestroyTexture(SDL_Renderer * renderer, SDL_Texture * texture);
    1.11  static void SW_DestroyRenderer(SDL_Renderer * renderer);
    1.12 @@ -166,7 +164,6 @@
    1.13      renderer->RenderFillRects = SW_RenderFillRects;
    1.14      renderer->RenderCopy = SW_RenderCopy;
    1.15      renderer->RenderReadPixels = SW_RenderReadPixels;
    1.16 -    renderer->RenderWritePixels = SW_RenderWritePixels;
    1.17      renderer->RenderPresent = SW_RenderPresent;
    1.18      renderer->DestroyRenderer = SW_DestroyRenderer;
    1.19      renderer->info = SW_RenderDriver.info;
    1.20 @@ -592,29 +589,6 @@
    1.21      return 0;
    1.22  }
    1.23  
    1.24 -static int
    1.25 -SW_RenderWritePixels(SDL_Renderer * renderer, const SDL_Rect * rect,
    1.26 -                     Uint32 format, const void * pixels, int pitch)
    1.27 -{
    1.28 -    SW_RenderData *data = (SW_RenderData *) renderer->driverdata;
    1.29 -
    1.30 -    if (!SW_ActivateRenderer(renderer)) {
    1.31 -        return -1;
    1.32 -    }
    1.33 -
    1.34 -    if (data->renderer->LockTexture(data->renderer, data->texture, rect,
    1.35 -                                    &data->surface.pixels,
    1.36 -                                    &data->surface.pitch) < 0) {
    1.37 -        return -1;
    1.38 -    }
    1.39 -
    1.40 -    SDL_ConvertPixels(rect->w, rect->h, format, pixels, pitch,
    1.41 -                      data->format, data->surface.pixels, data->surface.pitch);
    1.42 -
    1.43 -    data->renderer->UnlockTexture(data->renderer, data->texture);
    1.44 -    return 0;
    1.45 -}
    1.46 -
    1.47  static void
    1.48  SW_RenderPresent(SDL_Renderer * renderer)
    1.49  {