Commit 08e02775 authored by Sam Lantinga's avatar Sam Lantinga

indent

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403382
parent c5536830
...@@ -218,7 +218,7 @@ SDL_LoadBMP_RW(SDL_RWops * src, int freesrc) ...@@ -218,7 +218,7 @@ SDL_LoadBMP_RW(SDL_RWops * src, int freesrc)
if (biClrUsed == 0) { if (biClrUsed == 0) {
biClrUsed = 1 << biBitCount; biClrUsed = 1 << biBitCount;
} }
if ((int)biClrUsed > palette->ncolors) { if ((int) biClrUsed > palette->ncolors) {
palette->ncolors = biClrUsed; palette->ncolors = biClrUsed;
palette->colors = palette->colors =
(SDL_Color *) SDL_realloc(palette->colors, (SDL_Color *) SDL_realloc(palette->colors,
...@@ -229,7 +229,7 @@ SDL_LoadBMP_RW(SDL_RWops * src, int freesrc) ...@@ -229,7 +229,7 @@ SDL_LoadBMP_RW(SDL_RWops * src, int freesrc)
was_error = 1; was_error = 1;
goto done; goto done;
} }
} else if ((int)biClrUsed < palette->ncolors) { } else if ((int) biClrUsed < palette->ncolors) {
palette->ncolors = biClrUsed; palette->ncolors = biClrUsed;
} }
if (biSize == 12) { if (biSize == 12) {
......
...@@ -119,7 +119,8 @@ SDL_UnionRect(const SDL_Rect * A, const SDL_Rect * B, SDL_Rect * result) ...@@ -119,7 +119,8 @@ SDL_UnionRect(const SDL_Rect * A, const SDL_Rect * B, SDL_Rect * result)
} }
SDL_bool 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 x1, y1;
int x2, y2; int x2, y2;
......
...@@ -157,7 +157,7 @@ X11_InitModes(_THIS) ...@@ -157,7 +157,7 @@ X11_InitModes(_THIS)
displaydata->visual = vinfo.visual; displaydata->visual = vinfo.visual;
displaydata->depth = vinfo.depth; 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); pixmapFormats = XListPixmapFormats(data->display, &n);
if (pixmapFormats) { if (pixmapFormats) {
for (i = 0; i < n; ++i) { for (i = 0; i < n; ++i) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment