changeset 2172:bef26cfc8f79

Fixed compiling YUV code
author Sam Lantinga <slouken@libsdl.org>
date Wed, 11 Jul 2007 14:50:21 +0000
parents 4bd2dc41fc15
children 26233707bc94
files src/video/SDL_yuv_sw.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/video/SDL_yuv_sw.c	Wed Jul 11 14:49:44 2007 +0000
+++ b/src/video/SDL_yuv_sw.c	Wed Jul 11 14:50:21 2007 +0000
@@ -981,7 +981,8 @@
 #if (__GNUC__ > 2) && defined(__i386__) && SDL_ASSEMBLY_ROUTINES
             /* inline assembly functions */
             if (SDL_HasMMX() && (Rmask == 0xF800) &&
-                (Gmask == 0x07E0) && (Bmask == 0x001F) && (width & 15) == 0) {
+                (Gmask == 0x07E0) && (Bmask == 0x001F)
+                && (swdata->texture->w & 15) == 0) {
 /*printf("Using MMX 16-bit 565 dither\n");*/
                 swdata->Display1X = Color565DitherYV12MMX1X;
             } else {
@@ -1002,7 +1003,7 @@
             /* inline assembly functions */
             if (SDL_HasMMX() && (Rmask == 0x00FF0000) &&
                 (Gmask == 0x0000FF00) &&
-                (Bmask == 0x000000FF) && (width & 15) == 0) {
+                (Bmask == 0x000000FF) && (swdata->texture->w & 15) == 0) {
 /*printf("Using MMX 32-bit dither\n");*/
                 swdata->Display1X = ColorRGBDitherYV12MMX1X;
             } else {