indent
authorSam Lantinga <slouken@libsdl.org>
Thu, 25 Dec 2008 05:26:29 +0000
changeset 2920cdb01906cb7e
parent 2919 2f91a3847ae8
child 2921 3c45e98e0547
indent
src/video/SDL_bmp.c
src/video/SDL_rect.c
src/video/win32/SDL_d3drender.c
src/video/x11/SDL_x11modes.c
     1.1 --- a/src/video/SDL_bmp.c	Thu Dec 25 05:16:18 2008 +0000
     1.2 +++ b/src/video/SDL_bmp.c	Thu Dec 25 05:26:29 2008 +0000
     1.3 @@ -218,7 +218,7 @@
     1.4          if (biClrUsed == 0) {
     1.5              biClrUsed = 1 << biBitCount;
     1.6          }
     1.7 -        if ((int)biClrUsed > palette->ncolors) {
     1.8 +        if ((int) biClrUsed > palette->ncolors) {
     1.9              palette->ncolors = biClrUsed;
    1.10              palette->colors =
    1.11                  (SDL_Color *) SDL_realloc(palette->colors,
    1.12 @@ -229,7 +229,7 @@
    1.13                  was_error = 1;
    1.14                  goto done;
    1.15              }
    1.16 -        } else if ((int)biClrUsed < palette->ncolors) {
    1.17 +        } else if ((int) biClrUsed < palette->ncolors) {
    1.18              palette->ncolors = biClrUsed;
    1.19          }
    1.20          if (biSize == 12) {
     2.1 --- a/src/video/SDL_rect.c	Thu Dec 25 05:16:18 2008 +0000
     2.2 +++ b/src/video/SDL_rect.c	Thu Dec 25 05:26:29 2008 +0000
     2.3 @@ -119,7 +119,8 @@
     2.4  }
     2.5  
     2.6  SDL_bool
     2.7 -SDL_IntersectRectAndLine(const SDL_Rect *rect, int *X1, int *Y1, int *X2, int *Y2)
     2.8 +SDL_IntersectRectAndLine(const SDL_Rect * rect, int *X1, int *Y1, int *X2,
     2.9 +                         int *Y2)
    2.10  {
    2.11      int x1, y1;
    2.12      int x2, y2;
     3.1 --- a/src/video/win32/SDL_d3drender.c	Thu Dec 25 05:16:18 2008 +0000
     3.2 +++ b/src/video/win32/SDL_d3drender.c	Thu Dec 25 05:26:29 2008 +0000
     3.3 @@ -726,9 +726,9 @@
     3.4      result =
     3.5          IDirect3DDevice9_Clear(data->device, 1, &d3drect, D3DCLEAR_TARGET,
     3.6                                 D3DCOLOR_ARGB(renderer->a,
     3.7 -							                 renderer->r,
     3.8 -											 renderer->g,
     3.9 -											 renderer->b), 1.0f, 0);
    3.10 +                                             renderer->r,
    3.11 +                                             renderer->g,
    3.12 +                                             renderer->b), 1.0f, 0);
    3.13      if (FAILED(result)) {
    3.14          D3D_SetError("Clear()", result);
    3.15          return -1;
     4.1 --- a/src/video/x11/SDL_x11modes.c	Thu Dec 25 05:16:18 2008 +0000
     4.2 +++ b/src/video/x11/SDL_x11modes.c	Thu Dec 25 05:26:29 2008 +0000
     4.3 @@ -157,7 +157,7 @@
     4.4          displaydata->visual = vinfo.visual;
     4.5          displaydata->depth = vinfo.depth;
     4.6  
     4.7 -        displaydata->scanline_pad = SDL_BYTESPERPIXEL(mode.format)*8;
     4.8 +        displaydata->scanline_pad = SDL_BYTESPERPIXEL(mode.format) * 8;
     4.9          pixmapFormats = XListPixmapFormats(data->display, &n);
    4.10          if (pixmapFormats) {
    4.11              for (i = 0; i < n; ++i) {