render: csd: scale border width when rendering the CSD border’s visible part

This commit is contained in:
Daniel Eklöf 2021-12-29 18:11:51 +01:00
parent 8ac2bcff67
commit abec4f4e71
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 5 additions and 2 deletions

View file

@ -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);