src/video/nds/SDL_ndsrender.c
changeset 5138 da10636e5eca
parent 4929 aa8888658021
child 5140 e743b9c3f6d6
     1.1 --- a/src/video/nds/SDL_ndsrender.c	Mon Jan 31 22:21:29 2011 -0800
     1.2 +++ b/src/video/nds/SDL_ndsrender.c	Mon Jan 31 22:44:43 2011 -0800
     1.3 @@ -56,8 +56,6 @@
     1.4                                    SDL_Texture * texture);
     1.5  static int NDS_SetTextureBlendMode(SDL_Renderer * renderer,
     1.6                                     SDL_Texture * texture);
     1.7 -static int NDS_SetTextureScaleMode(SDL_Renderer * renderer,
     1.8 -                                   SDL_Texture * texture);
     1.9  static int NDS_UpdateTexture(SDL_Renderer * renderer, SDL_Texture * texture,
    1.10                               const SDL_Rect * rect, const void *pixels,
    1.11                               int pitch);
    1.12 @@ -82,7 +80,6 @@
    1.13       (SDL_RENDERER_SINGLEBUFFER | SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTDISCARD | SDL_RENDERER_PRESENTVSYNC),  /* u32 flags */
    1.14       (SDL_TEXTUREMODULATE_NONE),        /* u32 mod_modes */
    1.15       (SDL_BLENDMODE_MASK),      /* u32 blend_modes */
    1.16 -     (SDL_SCALEMODE_FAST),       /* u32 scale_modes */
    1.17       3,                         /* u32 num_texture_formats */
    1.18       {
    1.19        SDL_PIXELFORMAT_INDEX8,
    1.20 @@ -184,7 +181,6 @@
    1.21      renderer->SetTextureColorMod = NDS_SetTextureColorMod;
    1.22      renderer->SetTextureAlphaMod = NDS_SetTextureAlphaMod;
    1.23      renderer->SetTextureBlendMode = NDS_SetTextureBlendMode;
    1.24 -    renderer->SetTextureScaleMode = NDS_SetTextureScaleMode;
    1.25      renderer->UpdateTexture = NDS_UpdateTexture;
    1.26      renderer->LockTexture = NDS_LockTexture;
    1.27      renderer->UnlockTexture = NDS_UnlockTexture;
    1.28 @@ -192,7 +188,6 @@
    1.29  
    1.30      renderer->info.mod_modes = NDS_RenderDriver.info.mod_modes;
    1.31      renderer->info.blend_modes = NDS_RenderDriver.info.blend_modes;
    1.32 -    renderer->info.scale_modes = NDS_RenderDriver.info.scale_modes;
    1.33      renderer->info.num_texture_formats =
    1.34          NDS_RenderDriver.info.num_texture_formats;
    1.35      SDL_memcpy(renderer->info.texture_formats,
    1.36 @@ -588,11 +583,4 @@
    1.37      return 0;
    1.38  }
    1.39  
    1.40 -static int
    1.41 -NDS_SetTextureScaleMode(SDL_Renderer * renderer, SDL_Texture * texture)
    1.42 -{
    1.43 -    /* stub! (note: NDS hardware scaling is nearest neighbor.) */
    1.44 -    return 0;
    1.45 -}
    1.46 -
    1.47  /* vi: set ts=4 sw=4 expandtab: */