Skip to content

Commit

Permalink
ui: fix vt100 compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
martanne committed Mar 17, 2017
1 parent 51d4022 commit 9d38d2c
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions ui-terminal-vt100.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,15 @@
#define ui_term_backend_new ui_vt100_new
#define ui_term_backend_free ui_vt100_free

#define CELL_COLOR_BLACK (CellColor){ .index = 0 }
#define CELL_COLOR_RED (CellColor){ .index = 1 }
#define CELL_COLOR_GREEN (CellColor){ .index = 2 }
#define CELL_COLOR_YELLOW (CellColor){ .index = 3 }
#define CELL_COLOR_BLUE (CellColor){ .index = 4 }
#define CELL_COLOR_MAGENTA (CellColor){ .index = 5 }
#define CELL_COLOR_CYAN (CellColor){ .index = 6 }
#define CELL_COLOR_WHITE (CellColor){ .index = 7 }
#define CELL_COLOR_DEFAULT (CellColor){ .index = 9 }
#define CELL_COLOR_BLACK { .index = 0 }
#define CELL_COLOR_RED { .index = 1 }
#define CELL_COLOR_GREEN { .index = 2 }
#define CELL_COLOR_YELLOW { .index = 3 }
#define CELL_COLOR_BLUE { .index = 4 }
#define CELL_COLOR_MAGENTA { .index = 5 }
#define CELL_COLOR_CYAN { .index = 6 }
#define CELL_COLOR_WHITE { .index = 7 }
#define CELL_COLOR_DEFAULT { .index = 9 }

#define CELL_ATTR_NORMAL 0
#define CELL_ATTR_UNDERLINE (1 << 0)
Expand Down Expand Up @@ -113,7 +113,7 @@ static void ui_vt100_blit(UiTerm *tui) {
CellStyle *style = &cell->style;
if (style->attr != attr) {

static struct {
static const struct {
CellAttr attr;
char on[4], off[4];
} cell_attrs[] = {
Expand Down

0 comments on commit 9d38d2c

Please sign in to comment.