src/video/win32/SDL_d3drender.c
changeset 1917 3f54b3ec5a07
parent 1916 c773b0c0ac89
child 1918 092bd3a019c5
     1.1 --- a/src/video/win32/SDL_d3drender.c	Wed Jul 19 05:03:21 2006 +0000
     1.2 +++ b/src/video/win32/SDL_d3drender.c	Wed Jul 19 05:45:42 2006 +0000
     1.3 @@ -653,6 +653,28 @@
     1.4          break;
     1.5      }
     1.6  
     1.7 +    switch (scaleMode) {
     1.8 +    case SDL_TextureScaleMode_None:
     1.9 +    case SDL_TextureScaleMode_Fast:
    1.10 +        IDirect3DDevice9_SetSamplerState(data->device, 0, D3DSAMP_MINFILTER,
    1.11 +                                         D3DTEXF_POINT);
    1.12 +        IDirect3DDevice9_SetSamplerState(data->device, 0, D3DSAMP_MAGFILTER,
    1.13 +                                         D3DTEXF_POINT);
    1.14 +        break;
    1.15 +    case SDL_TextureScaleMode_Slow:
    1.16 +        IDirect3DDevice9_SetSamplerState(data->device, 0, D3DSAMP_MINFILTER,
    1.17 +                                         D3DTEXF_LINEAR);
    1.18 +        IDirect3DDevice9_SetSamplerState(data->device, 0, D3DSAMP_MAGFILTER,
    1.19 +                                         D3DTEXF_LINEAR);
    1.20 +        break;
    1.21 +    case SDL_TextureScaleMode_Best:
    1.22 +        IDirect3DDevice9_SetSamplerState(data->device, 0, D3DSAMP_MINFILTER,
    1.23 +                                         D3DTEXF_GAUSSIANQUAD);
    1.24 +        IDirect3DDevice9_SetSamplerState(data->device, 0, D3DSAMP_MAGFILTER,
    1.25 +                                         D3DTEXF_GAUSSIANQUAD);
    1.26 +        break;
    1.27 +    }
    1.28 +
    1.29      result =
    1.30          IDirect3DDevice9_SetTexture(data->device, 0,
    1.31                                      (IDirect3DBaseTexture9 *) texturedata->