1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-29 01:45:34 +00:00

document/html: struct text_attrib_style -> struct text_style

This commit is contained in:
Petr Baudis 2007-08-28 20:14:47 +02:00 committed by Petr Baudis
parent 46e44f9298
commit e133941206
2 changed files with 3 additions and 3 deletions

View File

@ -30,14 +30,14 @@ enum format_attr {
AT_PREFORMATTED = 32, AT_PREFORMATTED = 32,
}; };
struct text_attrib_style { struct text_style {
enum format_attr attr; enum format_attr attr;
color_T fg; color_T fg;
color_T bg; color_T bg;
}; };
struct text_attrib { struct text_attrib {
struct text_attrib_style style; struct text_style style;
int fontsize; int fontsize;
unsigned char *link; unsigned char *link;

View File

@ -340,7 +340,7 @@ static inline struct screen_char *
get_format_screen_char(struct html_context *html_context, get_format_screen_char(struct html_context *html_context,
enum link_state link_state) enum link_state link_state)
{ {
static struct text_attrib_style ta_cache = { -1, 0x0, 0x0 }; static struct text_style ta_cache = { -1, 0x0, 0x0 };
static struct screen_char schar_cache; static struct screen_char schar_cache;
if (memcmp(&ta_cache, &format.style, sizeof(ta_cache))) { if (memcmp(&ta_cache, &format.style, sizeof(ta_cache))) {