src/video/SDL_yuv_sw.c
changeset 2786 6bacfecbf27e
parent 2781 5651642f4a78
child 2795 9e7ce3069096
     1.1 --- a/src/video/SDL_yuv_sw.c	Tue Nov 25 02:12:19 2008 +0000
     1.2 +++ b/src/video/SDL_yuv_sw.c	Tue Nov 25 02:21:53 2008 +0000
     1.3 @@ -91,9 +91,9 @@
     1.4  
     1.5  struct SDL_SW_YUVTexture
     1.6  {
     1.7 -	Uint32 format;
     1.8 +    Uint32 format;
     1.9      Uint32 target_format;
    1.10 -	int w, h;
    1.11 +    int w, h;
    1.12      Uint8 *pixels;
    1.13      int *colortab;
    1.14      Uint32 *rgb_2_pix;
    1.15 @@ -1075,8 +1075,8 @@
    1.16  
    1.17      swdata->format = format;
    1.18      swdata->target_format = SDL_PIXELFORMAT_UNKNOWN;
    1.19 -	swdata->w = w;
    1.20 -	swdata->h = h;
    1.21 +    swdata->w = w;
    1.22 +    swdata->h = h;
    1.23      swdata->pixels = (Uint8 *) SDL_malloc(w * h * 2);
    1.24      swdata->colortab = (int *) SDL_malloc(4 * 256 * sizeof(int));
    1.25      swdata->rgb_2_pix = (Uint32 *) SDL_malloc(3 * 768 * sizeof(Uint32));
    1.26 @@ -1110,10 +1110,8 @@
    1.27          swdata->pitches[1] = swdata->pitches[0] / 2;
    1.28          swdata->pitches[2] = swdata->pitches[0] / 2;
    1.29          swdata->planes[0] = swdata->pixels;
    1.30 -        swdata->planes[1] =
    1.31 -            swdata->planes[0] + swdata->pitches[0] * h;
    1.32 -        swdata->planes[2] =
    1.33 -            swdata->planes[1] + swdata->pitches[1] * h / 2;
    1.34 +        swdata->planes[1] = swdata->planes[0] + swdata->pitches[0] * h;
    1.35 +        swdata->planes[2] = swdata->planes[1] + swdata->pitches[1] * h / 2;
    1.36          break;
    1.37      case SDL_PIXELFORMAT_YUY2:
    1.38      case SDL_PIXELFORMAT_UYVY: