Added padding for better aligned access to *shift/*loss members
authorSam Lantinga <slouken@libsdl.org>
Sun, 06 Mar 2011 23:54:20 -0800
changeset 5434 fb5e9db92a77
parent 5433 1b6eee840e26
child 5435 3de226f0cc06
Added padding for better aligned access to *shift/*loss members
include/SDL_pixels.h
--- a/include/SDL_pixels.h	Sun Mar 06 21:49:52 2011 -0800
+++ b/include/SDL_pixels.h	Sun Mar 06 23:54:20 2011 -0800
@@ -270,6 +270,11 @@
     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 @@
     Uint8 Gshift;
     Uint8 Bshift;
     Uint8 Ashift;
-    Uint32 Rmask;
-    Uint32 Gmask;
-    Uint32 Bmask;
-    Uint32 Amask;
     int refcount;
     struct SDL_PixelFormat *next;
 } SDL_PixelFormat;