--- a/ccdemos/common_sdl.h Tue Apr 29 13:56:29 2008 +0200
+++ b/ccdemos/common_sdl.h Tue Apr 29 23:31:08 2008 +0200
@@ -41,9 +41,9 @@
}
*bufp = SDL_MapRGB(screen->format, c[0], c[1], c[2]);
#else
- __m64 m = _mm_cvtps_pi8(_mm_mul_ps(_mm_set_ps1(255.0),
+ __m64 m = _mm_cvtps_pi16(_mm_mul_ps(_mm_set_ps1(255.0),
_mm_min_ps(mOne, _mm_set_ps(0, fd[2],fd[1],fd[0]))));
- *bufp = SDL_MapRGB(screen->format, ((char*)&m)[0], ((char*)&m)[1], ((char*)&m)[2]);
+ *bufp = SDL_MapRGB(screen->format, ((char*)&m)[0], ((char*)&m)[2], ((char*)&m)[4]);
#endif
bufp++;
}