summaryrefslogtreecommitdiff
path: root/os
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-02-01 09:08:25 +0000
committerpeter1138 <peter1138@openttd.org>2006-02-01 09:08:25 +0000
commit49e51cf27f7c49d2225dbac305a20a589a72f3f8 (patch)
tree39de152f478744b74706e56ebbe881c23a44e950 /os
parent1c3e8630feb95e7202c83984620aced872a5da77 (diff)
downloadopenttd-49e51cf27f7c49d2225dbac305a20a589a72f3f8.tar.xz
(svn r3512) Yet more whitespace fixes (mostly by Rubidium)
Diffstat (limited to 'os')
-rw-r--r--os/macosx/splash.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/os/macosx/splash.c b/os/macosx/splash.c
index 2d4373ce5..351aa9e0b 100644
--- a/os/macosx/splash.c
+++ b/os/macosx/splash.c
@@ -87,13 +87,13 @@ void DisplaySplashImage(void)
bit_depth = png_get_bit_depth(png_ptr, info_ptr);
color_type = png_get_color_type(png_ptr, info_ptr);
- if(color_type != PNG_COLOR_TYPE_PALETTE || bit_depth != 8) {
+ if (color_type != PNG_COLOR_TYPE_PALETTE || bit_depth != 8) {
png_destroy_read_struct(&png_ptr, &info_ptr, &end_info);
fclose(f);
return;
}
- if(!png_get_valid(png_ptr, info_ptr, PNG_INFO_PLTE)) {
+ if (!png_get_valid(png_ptr, info_ptr, PNG_INFO_PLTE)) {
png_destroy_read_struct(&png_ptr, &info_ptr, &end_info);
fclose(f);
return;
@@ -105,14 +105,12 @@ void DisplaySplashImage(void)
memset(_screen.dst_ptr, 0xff, _screen.pitch * _screen.height);
- if(width > (uint) _screen.width)
- width = _screen.width;
- if(height > (uint) _screen.height)
- height = _screen.height;
+ if (width > (uint) _screen.width) width = _screen.width;
+ if (height > (uint) _screen.height) height = _screen.height;
xoff = (_screen.width - width) / 2;
yoff = (_screen.height - height) / 2;
- for(y = 0; y < height; y++) {
+ for (y = 0; y < height; y++) {
src = row_pointers[y];
dst = ((uint8 *) _screen.dst_ptr) + (yoff + y) * _screen.pitch + xoff;