diff include/SDL_endian.h @ 1985:8055185ae4ed

Added source color and alpha modulation support. Added perl script to generate optimized render copy functions.
author Sam Lantinga <slouken@libsdl.org>
date Mon, 28 Aug 2006 03:17:39 +0000
parents b910bcabec26
children e1da92da346c 99210400e8b9
line wrap: on
line diff
--- a/include/SDL_endian.h	Thu Aug 24 12:49:59 2006 +0000
+++ b/include/SDL_endian.h	Mon Aug 28 03:17:39 2006 +0000
@@ -195,7 +195,11 @@
 static __inline__ float
 SDL_SwapFloat(float x)
 {
-    union { float f; Uint32 ui32; } swapper;
+    union
+    {
+        float f;
+        Uint32 ui32;
+    } swapper;
     swapper.f = x;
     swapper.ui32 = SDL_Swap32(swapper.ui32);
     return swapper.f;