mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-18 22:05:25 -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
|
|
@ -76,6 +76,8 @@
|
||||||
(https://codeberg.org/dnkl/foot/issues/857).
|
(https://codeberg.org/dnkl/foot/issues/857).
|
||||||
* OSC-8 URIs not getting overwritten (erased) by double-width
|
* OSC-8 URIs not getting overwritten (erased) by double-width
|
||||||
characters (e.g. emojis).
|
characters (e.g. emojis).
|
||||||
|
* Rendering of CSD borders when `csd.border-width > 0` and desktop
|
||||||
|
scaling has been enabled.
|
||||||
|
|
||||||
|
|
||||||
### Security
|
### Security
|
||||||
|
|
|
||||||
5
render.c
5
render.c
|
|
@ -1787,8 +1787,9 @@ render_csd_border(struct terminal *term, enum csd_surface surf_idx,
|
||||||
* The “visible” border.
|
* The “visible” border.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
int bwidth = term->conf->csd.border_width;
|
int scale = term->scale;
|
||||||
int vwidth = term->conf->csd.border_width_visible; /* Visibls size */
|
int bwidth = term->conf->csd.border_width * scale;
|
||||||
|
int vwidth = term->conf->csd.border_width_visible * scale; /* Visible size */
|
||||||
|
|
||||||
xassert(bwidth >= vwidth);
|
xassert(bwidth >= vwidth);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue