Skip to content

Commit

Permalink
Rename surface aligned memory flag to SDL_SIMD_ALIGNED
Browse files Browse the repository at this point in the history
  • Loading branch information
1bsyl committed Feb 4, 2019
1 parent 9a6863a commit 414904c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions SDL_ttf.c
Expand Up @@ -1057,7 +1057,7 @@ static SDL_Surface* Create_Surface_Solid(int width, int height, SDL_Color fg, Ui

/* Let SDL handle the memory allocation */
textbuf->flags &= ~SDL_PREALLOC;
textbuf->flags |= SDL_MEMALIGNED;
textbuf->flags |= SDL_SIMD_ALIGNED;

/* Initialize with background to 0 */
SDL_memset(pixels, 0, height * pitch);
Expand Down Expand Up @@ -1121,7 +1121,7 @@ static SDL_Surface* Create_Surface_Shaded(int width, int height, SDL_Color fg, S

/* Let SDL handle the memory allocation */
textbuf->flags &= ~SDL_PREALLOC;
textbuf->flags |= SDL_MEMALIGNED;
textbuf->flags |= SDL_SIMD_ALIGNED;

/* Initialize with background to 0 */
SDL_memset(pixels, 0, height * pitch);
Expand Down Expand Up @@ -1218,7 +1218,7 @@ static SDL_Surface *Create_Surface_Blended(int width, int height, SDL_Color fg,

/* Let SDL handle the memory allocation */
textbuf->flags &= ~SDL_PREALLOC;
textbuf->flags |= SDL_MEMALIGNED;
textbuf->flags |= SDL_SIMD_ALIGNED;

/* Initialize with fg and 0 alpha */
SDL_memset4(pixels, bgcolor, (height * pitch) / 4);
Expand Down

0 comments on commit 414904c

Please sign in to comment.