# HG changeset patch # User Matti Hamalainen # Date 1503011542 -10800 # Node ID 767b6ad595998b06f6d759a8751aff8f64fe5ca2 # Parent 300a51e98fc39e5f53df48ed2c62ae982cefb983 Use define instead of magic number. diff -r 300a51e98fc3 -r 767b6ad59599 src/libgfx.c --- a/src/libgfx.c Fri Aug 18 02:05:25 2017 +0300 +++ b/src/libgfx.c Fri Aug 18 02:12:22 2017 +0300 @@ -1123,7 +1123,7 @@ if (!dm_fread_byte(fp, &tmpb) || tmpb != 0x0C) { read = FALSE; - ncolors = 16; + ncolors = DMPCX_PAL_COLORS; } else {