From 7e4a86113b904ad33f339ba6d61f1048bcf7159c Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sun, 6 Mar 2011 23:54:20 -0800 Subject: [PATCH] Added padding for better aligned access to *shift/*loss members --- include/SDL_pixels.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/include/SDL_pixels.h b/include/SDL_pixels.h index eb253ec36..05f8c256c 100644 --- a/include/SDL_pixels.h +++ b/include/SDL_pixels.h @@ -270,6 +270,11 @@ typedef struct SDL_PixelFormat SDL_Palette *palette; Uint8 BitsPerPixel; Uint8 BytesPerPixel; + Uint8 padding[2]; + Uint32 Rmask; + Uint32 Gmask; + Uint32 Bmask; + Uint32 Amask; Uint8 Rloss; Uint8 Gloss; Uint8 Bloss; @@ -278,10 +283,6 @@ typedef struct SDL_PixelFormat Uint8 Gshift; Uint8 Bshift; Uint8 Ashift; - Uint32 Rmask; - Uint32 Gmask; - Uint32 Bmask; - Uint32 Amask; int refcount; struct SDL_PixelFormat *next; } SDL_PixelFormat;