Mercurial > hg > dmlib
changeset 1433:d8a83582f78f
Cosmetics.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 22 Nov 2017 01:33:47 +0200 |
parents | a9516570cc26 |
children | ad3ad5d9681b |
files | tests/vecmattest.c tools/data2inc.c tools/gfxconv.c tools/lib64gfx.c |
diffstat | 4 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/vecmattest.c Wed Nov 22 01:33:21 2017 +0200 +++ b/tests/vecmattest.c Wed Nov 22 01:33:47 2017 +0200 @@ -2,6 +2,7 @@ #include "dmlib.h" #include "dmvecmat.h" + void printTest(const char *test, int expected, int result) { fprintf(stderr, "Test '%s': %s\n", test,
--- a/tools/data2inc.c Wed Nov 22 01:33:21 2017 +0200 +++ b/tools/data2inc.c Wed Nov 22 01:33:47 2017 +0200 @@ -10,6 +10,7 @@ #include "dmargs.h" #include "dmmutex.h" + #define RA_LINEBUF (16) enum
--- a/tools/gfxconv.c Wed Nov 22 01:33:21 2017 +0200 +++ b/tools/gfxconv.c Wed Nov 22 01:33:47 2017 +0200 @@ -9,9 +9,9 @@ #include "dmlib.h" #include "dmargs.h" #include "dmfile.h" -#include "dmmutex.h" #include "libgfx.h" #include "lib64gfx.h" +#include "dmmutex.h" #define DM_MAX_COLORS 256
--- a/tools/lib64gfx.c Wed Nov 22 01:33:21 2017 +0200 +++ b/tools/lib64gfx.c Wed Nov 22 01:33:47 2017 +0200 @@ -345,6 +345,7 @@ static int fmtProbeAmicaPaintPacked(const Uint8 *buf, const size_t len, const DMC64ImageFormat *fmt) { size_t i, n; + if (len < 2048 || !dmCompareAddr16(buf, 0, fmt->addr)) return DM_PROBE_SCORE_FALSE;