mirror of
https://github.com/tat3r/a2m.git
synced 2024-11-14 11:46:39 +00:00
highly advanced optimizations
This commit is contained in:
parent
619e269123
commit
b811ef9b48
8
a2m.c
8
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) {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user