os/macosx/splash.c
changeset 2953 4d933ef9a41f
parent 2847 65c54f935db6
child 4300 c7e43c47a2b9
--- a/os/macosx/splash.c	Wed Feb 01 07:36:15 2006 +0000
+++ b/os/macosx/splash.c	Wed Feb 01 09:08:25 2006 +0000
@@ -87,13 +87,13 @@
 	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 @@
 
 	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;