mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-17 06:46:21 -04:00
Crosshair coredump fix. Crosshair styles.
Fixed possibilities for coredumps when having a fixed cross hair and modifying the window size to the extend the crosshair would now be out of the window boundaries. Implemented a Crosshair style switch from Full Cross to Vertical Line to Horizontal Line.
This commit is contained in:
parent
c742f640af
commit
9a3ac3a406
8 changed files with 63 additions and 26 deletions
|
|
@ -1217,6 +1217,8 @@ term_init(const struct config *conf, struct fdm *fdm, struct reaper *reaper,
|
|||
.crosshair.position_fixed = false,
|
||||
.crosshair.use_mouse_position = false,
|
||||
.crosshair.use_mouse_pixel_coordinates = false,
|
||||
.crosshair.width = 1,
|
||||
.crosshair.style = CROSSHAIR_FULL,
|
||||
.tab_stops = tll_init(),
|
||||
.wl = wayl,
|
||||
.render = {
|
||||
|
|
@ -1973,6 +1975,8 @@ term_reset(struct terminal *term, bool hard)
|
|||
term->crosshair.position_fixed = false;
|
||||
term->crosshair.use_mouse_position = false;
|
||||
term->crosshair.use_mouse_pixel_coordinates = false;
|
||||
term->crosshair.width = 1;
|
||||
term->crosshair.style = CROSSHAIR_FULL;
|
||||
|
||||
tll_free(term->normal.scroll_damage);
|
||||
tll_free(term->alt.scroll_damage);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue