summaryrefslogtreecommitdiff
path: root/src/client/image.c
diff options
context:
space:
mode:
authorDusan Durech <dusan.d@centrum.sk>2008-11-15 16:08:21 +0100
committerDusan Durech <dusan.d@centrum.sk>2008-11-15 16:08:21 +0100
commit35084eaadf8b37f5c4a325f0d4b01767753ee9c3 (patch)
tree8ca9a541783690eb6087a52faafa75e9a53d1521 /src/client/image.c
parent98875c5a636f50fe89b9394b8193e86094ae14e0 (diff)
modification coding stile
Diffstat (limited to 'src/client/image.c')
-rw-r--r--src/client/image.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/client/image.c b/src/client/image.c
index e5b0c3e..711d8b4 100644
--- a/src/client/image.c
+++ b/src/client/image.c
@@ -53,9 +53,7 @@ static SDL_Surface *loadImage(const char *filename, int alpha)
return NULL;
}
- if ((ret =
- (alpha) ? SDL_DisplayFormatAlpha(tmp) : SDL_DisplayFormat(tmp)) ==
- NULL) {
+ if ((ret = (alpha) ? SDL_DisplayFormatAlpha(tmp) : SDL_DisplayFormat(tmp)) == NULL) {
fprintf(stderr, "%s\n", SDL_GetError());
SDL_FreeSurface(tmp);
return NULL;