Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
indent
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Dec 25, 2008
1 parent df44937 commit b312cab
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/video/SDL_bmp.c
Expand Up @@ -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,
Expand All @@ -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) {
Expand Down
3 changes: 2 additions & 1 deletion src/video/SDL_rect.c
Expand Up @@ -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;
Expand Down
6 changes: 3 additions & 3 deletions src/video/win32/SDL_d3drender.c
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/video/x11/SDL_x11modes.c
Expand Up @@ -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) {
Expand Down

0 comments on commit b312cab

Please sign in to comment.