diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2017-03-17 12:22:07 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-03-17 12:22:07 +0100 |
| commit | 9d38d2cf63526dfbc5875aa6bf0b9ba611e389c9 (patch) | |
| tree | 12c08f7d10268f119d0d0f0857024d262da04ca3 | |
| parent | 51d402293fa8e75e9dcf737e4176ac6ccbb2fd8e (diff) | |
| download | vis-9d38d2cf63526dfbc5875aa6bf0b9ba611e389c9.tar.gz vis-9d38d2cf63526dfbc5875aa6bf0b9ba611e389c9.tar.xz | |
ui: fix vt100 compilation
| -rw-r--r-- | ui-terminal-vt100.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/ui-terminal-vt100.c b/ui-terminal-vt100.c index e786492..309261a 100644 --- a/ui-terminal-vt100.c +++ b/ui-terminal-vt100.c @@ -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) @@ -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[] = { |
