Rename surface aligned memory flag to SDL_SIMD_ALIGNED
authorSylvain Becker <sylvain.becker@gmail.com>
Mon, 04 Feb 2019 08:34:24 +0100
changeset 1258985bc5436a005
parent 12588 1fc2169984ad
child 12590 b50bedb4bca0
Rename surface aligned memory flag to SDL_SIMD_ALIGNED
include/SDL_surface.h
src/video/SDL_surface.c
     1.1 --- a/include/SDL_surface.h	Thu Jan 31 19:52:47 2019 -0400
     1.2 +++ b/include/SDL_surface.h	Mon Feb 04 08:34:24 2019 +0100
     1.3 @@ -53,7 +53,7 @@
     1.4  #define SDL_PREALLOC        0x00000001  /**< Surface uses preallocated memory */
     1.5  #define SDL_RLEACCEL        0x00000002  /**< Surface is RLE encoded */
     1.6  #define SDL_DONTFREE        0x00000004  /**< Surface is referenced internally */
     1.7 -#define SDL_MEMALIGNED      0x00000008  /**< Surface uses aligned memory */
     1.8 +#define SDL_SIMD_ALIGNED    0x00000008  /**< Surface uses aligned memory */
     1.9  /* @} *//* Surface flags */
    1.10  
    1.11  /**
     2.1 --- a/src/video/SDL_surface.c	Thu Jan 31 19:52:47 2019 -0400
     2.2 +++ b/src/video/SDL_surface.c	Mon Feb 04 08:34:24 2019 +0100
     2.3 @@ -1261,7 +1261,7 @@
     2.4      }
     2.5      if (surface->flags & SDL_PREALLOC) {
     2.6          /* Don't free */
     2.7 -    } else if (surface->flags & SDL_MEMALIGNED) {
     2.8 +    } else if (surface->flags & SDL_SIMD_ALIGNED) {
     2.9          /* Free aligned */
    2.10          SDL_SIMDFree(surface->pixels);
    2.11      } else {