# HG changeset patch # User Sam Lantinga # Date 1230182789 0 # Node ID cdb01906cb7e4a2cb733ec0d4d84bccfe9c0710a # Parent 2f91a3847ae889feda1835e6a12af7090724774d indent diff -r 2f91a3847ae8 -r cdb01906cb7e src/video/SDL_bmp.c --- 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) { diff -r 2f91a3847ae8 -r cdb01906cb7e src/video/SDL_rect.c --- 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; diff -r 2f91a3847ae8 -r cdb01906cb7e src/video/win32/SDL_d3drender.c --- 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; diff -r 2f91a3847ae8 -r cdb01906cb7e src/video/x11/SDL_x11modes.c --- 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) {