diff options
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/chdman.c | 2 | ||||
| -rw-r--r-- | src/tools/pngcmp.c | 24 | ||||
| -rw-r--r-- | src/tools/tools.mak | 2 |
3 files changed, 14 insertions, 14 deletions
diff --git a/src/tools/chdman.c b/src/tools/chdman.c index c888fccfdd5..8e34c274fc7 100644 --- a/src/tools/chdman.c +++ b/src/tools/chdman.c @@ -1088,7 +1088,7 @@ static void parse_compression(const parameters_t ¶ms, chd_codec_type compres if (end == -1) break; } - + for(;index < 4; ++index) { compression[index] = CHD_CODEC_NONE; diff --git a/src/tools/pngcmp.c b/src/tools/pngcmp.c index 7b1a18d3cb1..d26d0c4d8e7 100644 --- a/src/tools/pngcmp.c +++ b/src/tools/pngcmp.c @@ -1,6 +1,6 @@ /*************************************************************************** - pngcmp.c + pngcmp.c PNG comparison (based on regrep.c) @@ -50,7 +50,7 @@ CONSTANTS & DEFINES ***************************************************************************/ -#define BITMAP_SPACE 4 +#define BITMAP_SPACE 4 /*************************************************************************** PROTOTYPES @@ -68,16 +68,16 @@ static int generate_png_diff(const astring& imgfile1, const astring& imgfile2, c int main(int argc, char *argv[]) { - /* first argument is the directory */ - if (argc < 4) - { - fprintf(stderr, "Usage:\npngcmp <image1> <image2> <outfile>\n"); - return 10; - } - astring imgfilename1(argv[1]); - astring imgfilename2(argv[2]); + /* first argument is the directory */ + if (argc < 4) + { + fprintf(stderr, "Usage:\npngcmp <image1> <image2> <outfile>\n"); + return 10; + } + astring imgfilename1(argv[1]); + astring imgfilename2(argv[2]); astring outfilename(argv[3]); - + try { return generate_png_diff(imgfilename1, imgfilename2, outfilename); } @@ -172,7 +172,7 @@ static int generate_png_diff(const astring& imgfile1, const astring& imgfile2, c /* allocate the final bitmap */ finalbitmap.allocate(width, height); - + /* now copy and compare each set of bitmaps */ int curheight = MAX(bitmap1.height(), bitmap2.height()); /* iterate over rows in these bitmaps */ diff --git a/src/tools/tools.mak b/src/tools/tools.mak index 038250b6964..90f84dedc9c 100644 --- a/src/tools/tools.mak +++ b/src/tools/tools.mak @@ -206,4 +206,4 @@ PNGCMPOBJS = \ pngcmp$(EXE): $(PNGCMPOBJS) $(LIBUTIL) $(LIBOCORE) $(ZLIB) @echo Linking $@... $(LD) $(LDFLAGS) $^ $(LIBS) -o $@ - + |
