diff src/video/SDL_yuv_sw.c @ 2786:6bacfecbf27e

indent
author Sam Lantinga <slouken@libsdl.org>
date Tue, 25 Nov 2008 02:21:53 +0000
parents 5651642f4a78
children 9e7ce3069096
line wrap: on
line diff
--- a/src/video/SDL_yuv_sw.c	Tue Nov 25 02:12:19 2008 +0000
+++ b/src/video/SDL_yuv_sw.c	Tue Nov 25 02:21:53 2008 +0000
@@ -91,9 +91,9 @@
 
 struct SDL_SW_YUVTexture
 {
-	Uint32 format;
+    Uint32 format;
     Uint32 target_format;
-	int w, h;
+    int w, h;
     Uint8 *pixels;
     int *colortab;
     Uint32 *rgb_2_pix;
@@ -1075,8 +1075,8 @@
 
     swdata->format = format;
     swdata->target_format = SDL_PIXELFORMAT_UNKNOWN;
-	swdata->w = w;
-	swdata->h = h;
+    swdata->w = w;
+    swdata->h = h;
     swdata->pixels = (Uint8 *) SDL_malloc(w * h * 2);
     swdata->colortab = (int *) SDL_malloc(4 * 256 * sizeof(int));
     swdata->rgb_2_pix = (Uint32 *) SDL_malloc(3 * 768 * sizeof(Uint32));
@@ -1110,10 +1110,8 @@
         swdata->pitches[1] = swdata->pitches[0] / 2;
         swdata->pitches[2] = swdata->pitches[0] / 2;
         swdata->planes[0] = swdata->pixels;
-        swdata->planes[1] =
-            swdata->planes[0] + swdata->pitches[0] * h;
-        swdata->planes[2] =
-            swdata->planes[1] + swdata->pitches[1] * h / 2;
+        swdata->planes[1] = swdata->planes[0] + swdata->pitches[0] * h;
+        swdata->planes[2] = swdata->planes[1] + swdata->pitches[1] * h / 2;
         break;
     case SDL_PIXELFORMAT_YUY2:
     case SDL_PIXELFORMAT_UYVY: