diff src/audio/SDL_mixer.c @ 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 3b4ce57c6215
children 0615fa58c0be
line wrap: on
line diff
--- a/src/audio/SDL_mixer.c	Thu Aug 24 12:49:59 2006 +0000
+++ b/src/audio/SDL_mixer.c	Mon Aug 28 03:17:39 2006 +0000
@@ -263,8 +263,8 @@
             Uint32 *dst32 = (Uint32 *) dst;
             Sint32 src1, src2;
             Sint64 dst_sample;
-            const Sint64 max_audioval = ((((Sint64)1) << (32 - 1)) - 1);
-            const Sint64 min_audioval = -(((Sint64)1) << (32 - 1));
+            const Sint64 max_audioval = ((((Sint64) 1) << (32 - 1)) - 1);
+            const Sint64 min_audioval = -(((Sint64) 1) << (32 - 1));
 
             len /= 4;
             while (len--) {
@@ -289,8 +289,8 @@
             Uint32 *dst32 = (Uint32 *) dst;
             Sint32 src1, src2;
             Sint64 dst_sample;
-            const Sint64 max_audioval = ((((Sint64)1) << (32 - 1)) - 1);
-            const Sint64 min_audioval = -(((Sint64)1) << (32 - 1));
+            const Sint64 max_audioval = ((((Sint64) 1) << (32 - 1)) - 1);
+            const Sint64 min_audioval = -(((Sint64) 1) << (32 - 1));
 
             len /= 4;
             while (len--) {
@@ -322,7 +322,11 @@
             const double min_audioval = -3.40282347e+38F;
 
             /* !!! FIXME: this is a little nasty. */
-            union { float f; Uint32 ui32; } cvt;
+            union
+            {
+                float f;
+                Uint32 ui32;
+            } cvt;
 
             len /= 4;
             while (len--) {
@@ -360,7 +364,11 @@
             const double min_audioval = -3.40282347e+38F;
 
             /* !!! FIXME: this is a little nasty. */
-            union { float f; Uint32 ui32; } cvt;
+            union
+            {
+                float f;
+                Uint32 ui32;
+            } cvt;
 
             len /= 4;
             while (len--) {