changeset 3863:4e23720e4278 SDL-1.2

Only convert endianness if both src and dest are 16bits
author Patrice Mandin <patmandin@gmail.com>
date Sat, 16 Sep 2006 09:14:25 +0000
parents 3c4ccd884117
children ea2a327b92d7
files src/audio/SDL_audiocvt.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/audio/SDL_audiocvt.c	Fri Sep 15 21:26:36 2006 +0000
+++ b/src/audio/SDL_audiocvt.c	Sat Sep 16 09:14:25 2006 +0000
@@ -1374,7 +1374,7 @@
 
 	/* First filter:  Endian conversion from src to dst */
 	if ( (src_format & 0x1000) != (dst_format & 0x1000)
-	     && ((src_format & 0xff) != 8) ) {
+	     && ((src_format & 0xff) == 16) && ((dst_format & 0xff) == 16)) {
 		cvt->filters[cvt->filter_index++] = SDL_ConvertEndian;
 	}