mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
render: csd: scale border width when rendering the CSD border’s visible part
This commit is contained in:
parent
8ac2bcff67
commit
abec4f4e71
2 changed files with 5 additions and 2 deletions
5
render.c
5
render.c
|
|
@ -1787,8 +1787,9 @@ render_csd_border(struct terminal *term, enum csd_surface surf_idx,
|
|||
* The “visible” border.
|
||||
*/
|
||||
|
||||
int bwidth = term->conf->csd.border_width;
|
||||
int vwidth = term->conf->csd.border_width_visible; /* Visibls size */
|
||||
int scale = term->scale;
|
||||
int bwidth = term->conf->csd.border_width * scale;
|
||||
int vwidth = term->conf->csd.border_width_visible * scale; /* Visible size */
|
||||
|
||||
xassert(bwidth >= vwidth);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue