Mercurial > hg > dmlib
changeset 1544:48823642c4fb
Cleanups.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 12 May 2018 21:00:22 +0300 |
parents | 416d7b3ba3b2 |
children | 3b613fcbf3ff |
files | tools/libgfx.h |
diffstat | 1 files changed, 13 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/tools/libgfx.h Sat May 12 17:48:56 2018 +0300 +++ b/tools/libgfx.h Sat May 12 21:00:22 2018 +0300 @@ -37,14 +37,26 @@ }; +// Error handling modes enum { - DM_ERRMODE_FAIL = 0, + DM_ERRMODE_FAIL = 0, DM_ERRMODE_RECOV_1, DM_ERRMODE_RECOV_2, }; +// Probe scores +enum +{ + DM_PROBE_SCORE_FALSE = 0, + DM_PROBE_SCORE_MAYBE = 250, + DM_PROBE_SCORE_AVG = 500, + DM_PROBE_SCORE_GOOD = 750, + DM_PROBE_SCORE_MAX = 1000, +}; + + // Bitmapped image struct typedef struct { @@ -84,14 +96,6 @@ } DMImageFormat; -// Probe scores -#define DM_PROBE_SCORE_MAX 1000 -#define DM_PROBE_SCORE_GOOD 750 -#define DM_PROBE_SCORE_AVG 500 -#define DM_PROBE_SCORE_MAYBE 250 -#define DM_PROBE_SCORE_FALSE 0 - - extern DMImageFormat dmImageFormatList[DM_IMGFMT_LAST]; extern int dmGFXErrorMode;