libansilove

Library for converting ANSI, ASCII, and other formats to PNG
Log | Files | Refs | README | LICENSE

commit fe818a462da13e7fec1bbd0af0a6c3dbcba40662
parent 7813b2896370ba2db7afd2df020dd4075f7d90fb
Author: Frederic Cambus <fred@statdns.com>
Date:   Sat, 17 Nov 2018 23:21:19 +0100

Use macros instead of hardcoded values in the Tundra loader

Diffstat:
Msrc/loaders/tundra.c | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/loaders/tundra.c b/src/loaders/tundra.c @@ -192,8 +192,10 @@ int ansilove_tundra(struct ansilove_ctx *ctx, struct ansilove_options *options) break; } - if (character != 1 && character != 2 && character != 4 && - character != 6) { + if (character != TUNDRA_POSITION && + character != TUNDRA_COLOR_BACKGROUND && + character != TUNDRA_COLOR_FOREGROUND && + character != TUNDRA_COLOR_BOTH) { drawchar(canvas, fontData.font_data, options->bits, fontData.height, column, row, background, foreground, character);