Commit 4c1a08f1 authored by Sam Lantinga's avatar Sam Lantinga

Added padding for better aligned access to *shift/*loss members

parent d8392622
...@@ -270,6 +270,11 @@ typedef struct SDL_PixelFormat ...@@ -270,6 +270,11 @@ typedef struct SDL_PixelFormat
SDL_Palette *palette; SDL_Palette *palette;
Uint8 BitsPerPixel; Uint8 BitsPerPixel;
Uint8 BytesPerPixel; Uint8 BytesPerPixel;
Uint8 padding[2];
Uint32 Rmask;
Uint32 Gmask;
Uint32 Bmask;
Uint32 Amask;
Uint8 Rloss; Uint8 Rloss;
Uint8 Gloss; Uint8 Gloss;
Uint8 Bloss; Uint8 Bloss;
...@@ -278,10 +283,6 @@ typedef struct SDL_PixelFormat ...@@ -278,10 +283,6 @@ typedef struct SDL_PixelFormat
Uint8 Gshift; Uint8 Gshift;
Uint8 Bshift; Uint8 Bshift;
Uint8 Ashift; Uint8 Ashift;
Uint32 Rmask;
Uint32 Gmask;
Uint32 Bmask;
Uint32 Amask;
int refcount; int refcount;
struct SDL_PixelFormat *next; struct SDL_PixelFormat *next;
} SDL_PixelFormat; } SDL_PixelFormat;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment