1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-20 00:15:31 +00:00

[terminal] Add cell_height and cell_width to structs unconditionally. Refs #288

This commit is contained in:
Witold Filipczyk 2024-03-07 08:22:57 +01:00
parent b71faa2d07
commit 9c04585e84
3 changed files with 2 additions and 7 deletions

View File

@ -62,10 +62,9 @@ struct document_options {
int meta_link_display;
int default_form_input_size;
int document_width;
#ifdef CONFIG_LIBSIXEL
int cell_width;
int cell_height;
#endif
/** @name The default (fallback) colors.
* @{ */
struct text_style default_style;

View File

@ -119,10 +119,8 @@ set_wh_term_event(struct term_event *ev, enum term_event_type type, int width, i
ev->ev = type;
ev->info.size.width = width;
ev->info.size.height = height;
#ifdef CONFIG_LIBSIXEL
ev->info.size.cell_width = cell_width;
ev->info.size.cell_height = cell_height;
#endif
}
#define set_init_term_event(ev, w, h, cw, ch) set_wh_term_event(ev, EVENT_INIT, w, h, cw, ch)
@ -136,10 +134,8 @@ set_wh_interlink_event(struct interlink_event *ev, enum term_event_type type, in
ev->ev = type;
ev->info.size.width = width;
ev->info.size.height = height;
#ifdef CONFIG_LIBSIXEL
ev->info.size.cell_width = cell_width;
ev->info.size.cell_height = cell_height;
#endif
}
#define set_resize_interlink_event(ev, w, h, cw, ch) set_wh_interlink_event(ev, EVENT_RESIZE, w, h, cw, ch)

View File

@ -178,9 +178,9 @@ struct terminal {
#ifdef CONFIG_LIBSIXEL
LIST_OF(struct image) images;
#endif
int cell_width;
int cell_height;
#endif
};
#define do_not_ignore_next_mouse_event(term) \