From b811ef9b489c1faee2da8012b4488c1205ab5fd9 Mon Sep 17 00:00:00 2001 From: tater Date: Wed, 21 Sep 2016 22:17:46 -0500 Subject: [PATCH] highly advanced optimizations --- a2m.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/a2m.c b/a2m.c index 4296de6..a36857a 100644 --- a/a2m.c +++ b/a2m.c @@ -473,10 +473,10 @@ print_color(canvas_t *c, cell_t *cell, int col) { static cell_t *prev = NULL; - int oldfg = (!prev || col == 0 + c->lcrop) ? DEFAULT_FG : prev->fg; - int oldbg = (!prev || col == 0 + c->lcrop) ? DEFAULT_BG : prev->bg; - int oldbold = (!prev || col == 0 + c->lcrop) ? DEFAULT_BOLD : prev->bold; - int oldice = (!prev || col == 0 + c->lcrop) ? DEFAULT_ICE : prev->ice; + int oldfg = (!prev || col == c->lcrop) ? DEFAULT_FG : prev->fg; + int oldbg = (!prev || col == c->lcrop) ? DEFAULT_BG : prev->bg; + int oldbold = (!prev || col == c->lcrop) ? DEFAULT_BOLD : prev->bold; + int oldice = (!prev || col == c->lcrop) ? DEFAULT_ICE : prev->ice; if (cell->fg != oldfg || cell->bg != oldbg || cell->bold != oldbold || cell->ice != oldice) {