From 08e0277512920561dbd436415fda595110e995a1 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Thu, 25 Dec 2008 05:26:29 +0000 Subject: [PATCH] indent --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403382 --- src/video/SDL_bmp.c | 4 ++-- src/video/SDL_rect.c | 3 ++- src/video/win32/SDL_d3drender.c | 6 +++--- src/video/x11/SDL_x11modes.c | 2 +- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/video/SDL_bmp.c b/src/video/SDL_bmp.c index 3117dd7d2..d8706d9f1 100644 --- a/src/video/SDL_bmp.c +++ b/src/video/SDL_bmp.c @@ -218,7 +218,7 @@ SDL_LoadBMP_RW(SDL_RWops * src, int freesrc) 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 @@ SDL_LoadBMP_RW(SDL_RWops * src, int freesrc) was_error = 1; goto done; } - } else if ((int)biClrUsed < palette->ncolors) { + } else if ((int) biClrUsed < palette->ncolors) { palette->ncolors = biClrUsed; } if (biSize == 12) { diff --git a/src/video/SDL_rect.c b/src/video/SDL_rect.c index 20b1e903d..26c4deee5 100644 --- a/src/video/SDL_rect.c +++ b/src/video/SDL_rect.c @@ -119,7 +119,8 @@ SDL_UnionRect(const SDL_Rect * A, const SDL_Rect * B, SDL_Rect * result) } 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 --git a/src/video/win32/SDL_d3drender.c b/src/video/win32/SDL_d3drender.c index e7d635794..69b1d5a27 100644 --- a/src/video/win32/SDL_d3drender.c +++ b/src/video/win32/SDL_d3drender.c @@ -726,9 +726,9 @@ D3D_RenderFill(SDL_Renderer * renderer, const SDL_Rect * rect) 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 --git a/src/video/x11/SDL_x11modes.c b/src/video/x11/SDL_x11modes.c index ae0e0d461..cc6f69564 100644 --- a/src/video/x11/SDL_x11modes.c +++ b/src/video/x11/SDL_x11modes.c @@ -157,7 +157,7 @@ X11_InitModes(_THIS) 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) {