Removed the SDL 1.2 compatibility API... we'll see how painful this is.
This commit is contained in:
parent
cb74808ecb
commit
5ef4144446
29 changed files with 51 additions and 7893 deletions
|
@ -21,7 +21,6 @@
|
|||
#include "SDL_config.h"
|
||||
|
||||
#include "SDL_video.h"
|
||||
#include "SDL_compat.h"
|
||||
#include "SDL_sysvideo.h"
|
||||
#include "SDL_blit.h"
|
||||
#include "SDL_RLEaccel_c.h"
|
||||
|
@ -195,13 +194,6 @@ SDL_SetColorKey(SDL_Surface * surface, int flag, Uint32 key)
|
|||
SDL_InvalidateMap(surface->map);
|
||||
}
|
||||
|
||||
/* Compatibility mode */
|
||||
if (surface->map->info.flags & SDL_COPY_COLORKEY) {
|
||||
surface->flags |= SDL_SRCCOLORKEY;
|
||||
} else {
|
||||
surface->flags &= ~SDL_SRCCOLORKEY;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -405,13 +397,6 @@ SDL_SetSurfaceBlendMode(SDL_Surface * surface, SDL_BlendMode blendMode)
|
|||
SDL_InvalidateMap(surface->map);
|
||||
}
|
||||
|
||||
/* Compatibility mode */
|
||||
if (surface->map->info.flags & SDL_COPY_BLEND) {
|
||||
surface->flags |= SDL_SRCALPHA;
|
||||
} else {
|
||||
surface->flags &= ~SDL_SRCALPHA;
|
||||
}
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue