comparison src/libgfx.c @ 1281:767b6ad59599

Use define instead of magic number.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 18 Aug 2017 02:12:22 +0300
parents 300a51e98fc3
children 642a0dd98c6e
comparison
equal deleted inserted replaced
1280:300a51e98fc3 1281:767b6ad59599
1121 BOOL read; 1121 BOOL read;
1122 1122
1123 if (!dm_fread_byte(fp, &tmpb) || tmpb != 0x0C) 1123 if (!dm_fread_byte(fp, &tmpb) || tmpb != 0x0C)
1124 { 1124 {
1125 read = FALSE; 1125 read = FALSE;
1126 ncolors = 16; 1126 ncolors = DMPCX_PAL_COLORS;
1127 } 1127 }
1128 else 1128 else
1129 { 1129 {
1130 read = TRUE; 1130 read = TRUE;
1131 ncolors = 256; 1131 ncolors = 256;