1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-28 01:35:32 +00:00

[draw] enum screen_char_attr -> screen_char_attr_T

This commit is contained in:
Witold Filipczyk 2022-01-28 14:47:36 +01:00
parent d839efc9f4
commit 199f1c60ff
3 changed files with 4 additions and 2 deletions

View File

@ -404,7 +404,7 @@ draw_menu_left_text_hk(struct terminal *term, char *text,
{
struct color_pair *hk_color = get_bfu_color(term, "menu.hotkey.normal");
struct color_pair *hk_color_sel = get_bfu_color(term, "menu.hotkey.selected");
enum screen_char_attr hk_attr = get_opt_bool("ui.dialogs.underline_hotkeys", NULL)
screen_char_attr_T hk_attr = get_opt_bool("ui.dialogs.underline_hotkeys", NULL)
? SCREEN_ATTR_UNDERLINE : 0;
unsigned char c;
int xbase = x + L_TEXT_SPACE;

View File

@ -29,7 +29,7 @@
static inline void
init_template(struct screen_char *template_, struct document_options *options,
enum screen_char_attr attr, color_T foreground, color_T background)
screen_char_attr_T attr, color_T foreground, color_T background)
{
struct text_style style = INIT_TEXT_STYLE((int)attr, foreground, background);

View File

@ -38,6 +38,8 @@ enum screen_char_attr {
SCREEN_ATTR_FRAME = 0x80,
};
typedef unsigned short screen_char_attr_T;
/** One position in the terminal screen's image. */
struct screen_char {
/** Contains either character value or frame data.