diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-01-31 10:52:44 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-02-07 15:33:31 +0000 |
| commit | 44b7758416d488911f9722ecccd5cc6bf8efddf8 (patch) | |
| tree | 2f10495b9da7504c575e202820cfb6ba099c203e /render.c | |
| parent | url-mode: urls_reset() do an early return if we don’t have any URLs (diff) | |
render: urls: positioning: place a bit further away from the starting position
Diffstat (limited to 'render.c')
| -rw-r--r-- | render.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2565,8 +2565,8 @@ render_urls(struct terminal *term) const struct coord *pos = &url->start; wl_subsurface_set_position( sub_surf, - (term->margins.left + pos->col * term->cell_width - term->cell_width) / term->scale, - (term->margins.top + pos->row * term->cell_height - term->cell_height / 2) / term->scale); + (term->margins.left + pos->col * term->cell_width - 2 * term->cell_width) / term->scale, + (term->margins.top + pos->row * term->cell_height - term->cell_height) / term->scale); render_osd(term, surf, sub_surf, buf, label, term->colors.table[0], term->colors.table[3], 0xf000, width, height, margin, margin); |
