diff options
author | peter1138 <peter1138@openttd.org> | 2006-02-01 09:08:25 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2006-02-01 09:08:25 +0000 |
commit | 80952253c2e8141d1933b8af7bf163c68e8224ef (patch) | |
tree | 39de152f478744b74706e56ebbe881c23a44e950 /os/macosx | |
parent | 84fb96fe85e75b038b527471428189170021f8b7 (diff) | |
download | openttd-80952253c2e8141d1933b8af7bf163c68e8224ef.tar.xz |
(svn r3512) Yet more whitespace fixes (mostly by Rubidium)
Diffstat (limited to 'os/macosx')
-rw-r--r-- | os/macosx/splash.c | 12 |
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; |