mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05:00
[screen] Test commit. Added element_offset to struct screen_char
This commit is contained in:
parent
937f6b415e
commit
5c8b62247a
@ -275,6 +275,7 @@ get_format_screen_char(struct html_context *html_context,
|
|||||||
schar_cache.attr |= SCREEN_ATTR_UNDERLINE;
|
schar_cache.attr |= SCREEN_ATTR_UNDERLINE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
schar_cache.element_offset = (elformat.top_name && html_context->document && html_context->document->text.source) ? elformat.top_name - html_context->document->text.source : 0;
|
||||||
return &schar_cache;
|
return &schar_cache;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -64,6 +64,8 @@ struct screen_char {
|
|||||||
unsigned char color[SCREEN_COLOR_SIZE];
|
unsigned char color[SCREEN_COLOR_SIZE];
|
||||||
unsigned int node_number;
|
unsigned int node_number;
|
||||||
} c;
|
} c;
|
||||||
|
|
||||||
|
unsigned int element_offset;
|
||||||
};
|
};
|
||||||
|
|
||||||
/** @relates screen_char */
|
/** @relates screen_char */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user