More cosmetic reformatting

Broke several remaining "if () statement;" and "else statement;" into
two lines.
This commit is contained in:
Glenn Randers-Pehrson
2009-05-30 20:19:20 -05:00
parent 45ae51743b
commit d8eb62ff15
7 changed files with 48 additions and 35 deletions

View File

@@ -1,7 +1,7 @@
/* pngtest.c - a simple test program to test libpng
*
* Last changed in libpng 1.4.0 [May 20, 2009]
* Last changed in libpng 1.4.0 [May 31, 2009]
* For conditions of distribution and use, see copyright notice in png.h
* Copyright (c) 1998-2009 Glenn Randers-Pehrson
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
@@ -210,7 +210,8 @@ count_zero_samples(png_structp png_ptr, png_row_infop row_info, png_bytep data)
zero_samples++;
if (row_info->bit_depth == 16)
{
if ((*dp | *(dp+1)) == 0) zero_samples++;
if ((*dp | *(dp+1)) == 0)
zero_samples++;
dp+=2;
}
}
@@ -231,7 +232,8 @@ count_zero_samples(png_structp png_ptr, png_row_infop row_info, png_bytep data)
zero_samples++;
if (row_info->bit_depth == 16)
{
if ((*dp | *(dp+1)) == 0) zero_samples++;
if ((*dp | *(dp+1)) == 0)
zero_samples++;
dp+=2;
}
}
@@ -1614,4 +1616,4 @@ main(int argc, char *argv[])
}
/* Generate a compiler error if there is an old png.h in the search path. */
typedef version_1_4_0beta61 your_png_h_is_not_version_1_4_0beta61;
typedef version_1_4_0beta62 your_png_h_is_not_version_1_4_0beta62;