mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -05:00
[terminal] Add cell_height and cell_width to structs unconditionally. Refs #288
This commit is contained in:
parent
b71faa2d07
commit
9c04585e84
@ -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;
|
||||
|
@ -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)
|
||||
|
@ -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) \
|
||||
|
Loading…
Reference in New Issue
Block a user