diff options
author | Jesse Luehrs <doy@tozt.net> | 2014-04-25 01:05:08 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2014-04-25 01:05:08 -0400 |
commit | 7ad3bb9d6b6def7127e4c6063dac85e2709b20eb (patch) | |
tree | 32aa08f77b4061640c59a607fff4dbdcd0b16065 /src/display.c | |
parent | fc95e7551a2f4e099c68fed6b14025adb8110673 (diff) | |
download | runes-7ad3bb9d6b6def7127e4c6063dac85e2709b20eb.tar.gz runes-7ad3bb9d6b6def7127e4c6063dac85e2709b20eb.zip |
refactor
Diffstat (limited to 'src/display.c')
-rw-r--r-- | src/display.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/display.c b/src/display.c index b0d380a..a85fdaf 100644 --- a/src/display.c +++ b/src/display.c @@ -153,12 +153,12 @@ static void runes_display_draw_cell(RunesTerm *t, int row, int col) struct runes_cell *cell = &t->scr.rows[row].cells[col]; cairo_pattern_t *bg = NULL, *fg = NULL; - switch (cell->bgcolor.type) { + switch (cell->attrs.bgcolor.type) { case RUNES_COLOR_DEFAULT: bg = t->bgdefault; break; case RUNES_COLOR_IDX: - bg = t->colors[cell->bgcolor.idx]; + bg = t->colors[cell->attrs.bgcolor.idx]; break; case RUNES_COLOR_RGB: /* XXX */ @@ -166,12 +166,12 @@ static void runes_display_draw_cell(RunesTerm *t, int row, int col) break; } - switch (cell->fgcolor.type) { + switch (cell->attrs.fgcolor.type) { case RUNES_COLOR_DEFAULT: fg = t->fgdefault; break; case RUNES_COLOR_IDX: - fg = t->colors[cell->fgcolor.idx]; + fg = t->colors[cell->attrs.fgcolor.idx]; break; case RUNES_COLOR_RGB: /* XXX */ |