mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-03 14:19:20 +00:00
Renamed SDL_SIMDGetAlignment() to SDL_GetSIMDAlignment()
This commit is contained in:
@@ -1495,7 +1495,7 @@ static SDL_bool UnRLEAlpha(SDL_Surface *surface)
|
||||
return SDL_FALSE;
|
||||
}
|
||||
|
||||
surface->pixels = SDL_aligned_alloc(SDL_SIMDGetAlignment(), size);
|
||||
surface->pixels = SDL_aligned_alloc(SDL_GetSIMDAlignment(), size);
|
||||
if (!surface->pixels) {
|
||||
return SDL_FALSE;
|
||||
}
|
||||
@@ -1567,7 +1567,7 @@ void SDL_UnRLESurface(SDL_Surface *surface, int recode)
|
||||
surface->flags |= SDL_RLEACCEL;
|
||||
return;
|
||||
}
|
||||
surface->pixels = SDL_aligned_alloc(SDL_SIMDGetAlignment(), size);
|
||||
surface->pixels = SDL_aligned_alloc(SDL_GetSIMDAlignment(), size);
|
||||
if (!surface->pixels) {
|
||||
/* Oh crap... */
|
||||
surface->flags |= SDL_RLEACCEL;
|
||||
|
||||
@@ -171,7 +171,7 @@ SDL_Surface *SDL_CreateSurface(int width, int height, SDL_PixelFormatEnum format
|
||||
|
||||
/* Get the pixels */
|
||||
if (surface->w && surface->h) {
|
||||
surface->pixels = SDL_aligned_alloc(SDL_SIMDGetAlignment(), size);
|
||||
surface->pixels = SDL_aligned_alloc(SDL_GetSIMDAlignment(), size);
|
||||
if (!surface->pixels) {
|
||||
SDL_DestroySurface(surface);
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user