From 9a98dcc5169c0eebef28dec60428b7d3dfc1311b Mon Sep 17 00:00:00 2001 From: Sylvain Becker Date: Mon, 4 Feb 2019 08:34:24 +0100 Subject: [PATCH] Rename surface aligned memory flag to SDL_SIMD_ALIGNED --- include/SDL_surface.h | 2 +- src/video/SDL_surface.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/SDL_surface.h b/include/SDL_surface.h index 457a8ebaaa15f..51a1283003ec0 100644 --- a/include/SDL_surface.h +++ b/include/SDL_surface.h @@ -53,7 +53,7 @@ extern "C" { #define SDL_PREALLOC 0x00000001 /**< Surface uses preallocated memory */ #define SDL_RLEACCEL 0x00000002 /**< Surface is RLE encoded */ #define SDL_DONTFREE 0x00000004 /**< Surface is referenced internally */ -#define SDL_MEMALIGNED 0x00000008 /**< Surface uses aligned memory */ +#define SDL_SIMD_ALIGNED 0x00000008 /**< Surface uses aligned memory */ /* @} *//* Surface flags */ /** diff --git a/src/video/SDL_surface.c b/src/video/SDL_surface.c index a95fce628c7cc..6b359754ee3aa 100644 --- a/src/video/SDL_surface.c +++ b/src/video/SDL_surface.c @@ -1261,7 +1261,7 @@ SDL_FreeSurface(SDL_Surface * surface) } if (surface->flags & SDL_PREALLOC) { /* Don't free */ - } else if (surface->flags & SDL_MEMALIGNED) { + } else if (surface->flags & SDL_SIMD_ALIGNED) { /* Free aligned */ SDL_SIMDFree(surface->pixels); } else {