version 1.24, 2021/08/22 15:33:14 |
version 1.25, 2021/10/26 12:22:23 |
|
|
/* Draw a format to a screen. */ |
/* Draw a format to a screen. */ |
void |
void |
format_draw(struct screen_write_ctx *octx, const struct grid_cell *base, |
format_draw(struct screen_write_ctx *octx, const struct grid_cell *base, |
u_int available, const char *expanded, struct style_ranges *srs) |
u_int available, const char *expanded, struct style_ranges *srs, |
|
int default_colours) |
{ |
{ |
enum { LEFT, |
enum { LEFT, |
CENTRE, |
CENTRE, |
|
|
log_debug("%s: style '%s' -> '%s'", __func__, tmp, |
log_debug("%s: style '%s' -> '%s'", __func__, tmp, |
style_tostring(&sy)); |
style_tostring(&sy)); |
free(tmp); |
free(tmp); |
|
if (default_colours) { |
|
sy.gc.bg = base->bg; |
|
sy.gc.fg = base->fg; |
|
} |
|
|
/* If this style has a fill colour, store it for later. */ |
/* If this style has a fill colour, store it for later. */ |
if (sy.fill != 8) |
if (sy.fill != 8) |