Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Added padding for better aligned access to *shift/*loss members
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Mar 7, 2011
1 parent a8c0254 commit 7e4a861
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions include/SDL_pixels.h
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 7e4a861

Please sign in to comment.