changeset 2920:cdb01906cb7e

indent
author Sam Lantinga <slouken@libsdl.org>
date Thu, 25 Dec 2008 05:26:29 +0000
parents 2f91a3847ae8
children 3c45e98e0547
files src/video/SDL_bmp.c src/video/SDL_rect.c src/video/win32/SDL_d3drender.c src/video/x11/SDL_x11modes.c
diffstat 4 files changed, 8 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/video/SDL_bmp.c	Thu Dec 25 05:16:18 2008 +0000
+++ b/src/video/SDL_bmp.c	Thu Dec 25 05:26:29 2008 +0000
@@ -218,7 +218,7 @@
         if (biClrUsed == 0) {
             biClrUsed = 1 << biBitCount;
         }
-        if ((int)biClrUsed > palette->ncolors) {
+        if ((int) biClrUsed > palette->ncolors) {
             palette->ncolors = biClrUsed;
             palette->colors =
                 (SDL_Color *) SDL_realloc(palette->colors,
@@ -229,7 +229,7 @@
                 was_error = 1;
                 goto done;
             }
-        } else if ((int)biClrUsed < palette->ncolors) {
+        } else if ((int) biClrUsed < palette->ncolors) {
             palette->ncolors = biClrUsed;
         }
         if (biSize == 12) {
--- a/src/video/SDL_rect.c	Thu Dec 25 05:16:18 2008 +0000
+++ b/src/video/SDL_rect.c	Thu Dec 25 05:26:29 2008 +0000
@@ -119,7 +119,8 @@
 }
 
 SDL_bool
-SDL_IntersectRectAndLine(const SDL_Rect *rect, int *X1, int *Y1, int *X2, int *Y2)
+SDL_IntersectRectAndLine(const SDL_Rect * rect, int *X1, int *Y1, int *X2,
+                         int *Y2)
 {
     int x1, y1;
     int x2, y2;
--- a/src/video/win32/SDL_d3drender.c	Thu Dec 25 05:16:18 2008 +0000
+++ b/src/video/win32/SDL_d3drender.c	Thu Dec 25 05:26:29 2008 +0000
@@ -726,9 +726,9 @@
     result =
         IDirect3DDevice9_Clear(data->device, 1, &d3drect, D3DCLEAR_TARGET,
                                D3DCOLOR_ARGB(renderer->a,
-							                 renderer->r,
-											 renderer->g,
-											 renderer->b), 1.0f, 0);
+                                             renderer->r,
+                                             renderer->g,
+                                             renderer->b), 1.0f, 0);
     if (FAILED(result)) {
         D3D_SetError("Clear()", result);
         return -1;
--- a/src/video/x11/SDL_x11modes.c	Thu Dec 25 05:16:18 2008 +0000
+++ b/src/video/x11/SDL_x11modes.c	Thu Dec 25 05:26:29 2008 +0000
@@ -157,7 +157,7 @@
         displaydata->visual = vinfo.visual;
         displaydata->depth = vinfo.depth;
 
-        displaydata->scanline_pad = SDL_BYTESPERPIXEL(mode.format)*8;
+        displaydata->scanline_pad = SDL_BYTESPERPIXEL(mode.format) * 8;
         pixmapFormats = XListPixmapFormats(data->display, &n);
         if (pixmapFormats) {
             for (i = 0; i < n; ++i) {