src/video/SDL_surface.c
changeset 4929 aa8888658021
parent 4491 2cd7bb613a83
child 4949 68da5a234bba
     1.1 --- a/src/video/SDL_surface.c	Thu Dec 02 11:56:23 2010 -0800
     1.2 +++ b/src/video/SDL_surface.c	Sun Dec 12 15:19:05 2010 -0800
     1.3 @@ -438,7 +438,7 @@
     1.4  }
     1.5  
     1.6  int
     1.7 -SDL_SetSurfaceBlendMode(SDL_Surface * surface, int blendMode)
     1.8 +SDL_SetSurfaceBlendMode(SDL_Surface * surface, SDL_BlendMode blendMode)
     1.9  {
    1.10      int flags, status;
    1.11  
    1.12 @@ -486,7 +486,7 @@
    1.13  }
    1.14  
    1.15  int
    1.16 -SDL_GetSurfaceBlendMode(SDL_Surface * surface, int *blendMode)
    1.17 +SDL_GetSurfaceBlendMode(SDL_Surface * surface, SDL_BlendMode *blendMode)
    1.18  {
    1.19      if (!surface) {
    1.20          return -1;
    1.21 @@ -519,7 +519,7 @@
    1.22  }
    1.23  
    1.24  int
    1.25 -SDL_SetSurfaceScaleMode(SDL_Surface * surface, int scaleMode)
    1.26 +SDL_SetSurfaceScaleMode(SDL_Surface * surface, SDL_ScaleMode scaleMode)
    1.27  {
    1.28      int flags, status;
    1.29  
    1.30 @@ -531,13 +531,13 @@
    1.31      flags = surface->map->info.flags;
    1.32      surface->map->info.flags &= ~(SDL_COPY_NEAREST);
    1.33      switch (scaleMode) {
    1.34 -    case SDL_TEXTURESCALEMODE_NONE:
    1.35 +    case SDL_SCALEMODE_NONE:
    1.36          break;
    1.37 -    case SDL_TEXTURESCALEMODE_FAST:
    1.38 +    case SDL_SCALEMODE_FAST:
    1.39          surface->map->info.flags |= SDL_COPY_NEAREST;
    1.40          break;
    1.41 -    case SDL_TEXTURESCALEMODE_SLOW:
    1.42 -    case SDL_TEXTURESCALEMODE_BEST:
    1.43 +    case SDL_SCALEMODE_SLOW:
    1.44 +    case SDL_SCALEMODE_BEST:
    1.45          SDL_Unsupported();
    1.46          surface->map->info.flags |= SDL_COPY_NEAREST;
    1.47          status = -1;
    1.48 @@ -555,7 +555,7 @@
    1.49  }
    1.50  
    1.51  int
    1.52 -SDL_GetSurfaceScaleMode(SDL_Surface * surface, int *scaleMode)
    1.53 +SDL_GetSurfaceScaleMode(SDL_Surface * surface, SDL_ScaleMode *scaleMode)
    1.54  {
    1.55      if (!surface) {
    1.56          return -1;
    1.57 @@ -567,10 +567,10 @@
    1.58  
    1.59      switch (surface->map->info.flags & SDL_COPY_NEAREST) {
    1.60      case SDL_COPY_NEAREST:
    1.61 -        *scaleMode = SDL_TEXTURESCALEMODE_FAST;
    1.62 +        *scaleMode = SDL_SCALEMODE_FAST;
    1.63          break;
    1.64      default:
    1.65 -        *scaleMode = SDL_TEXTURESCALEMODE_NONE;
    1.66 +        *scaleMode = SDL_SCALEMODE_NONE;
    1.67          break;
    1.68      }
    1.69      return 0;