mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
render-timer: use wayl_win_subsurface_new/destroy()
This commit is contained in:
parent
c8324943de
commit
438853a2d8
4 changed files with 10 additions and 20 deletions
5
render.c
5
render.c
|
|
@ -1912,13 +1912,14 @@ render_render_timer(struct terminal *term, struct timeval render_time)
|
|||
term->wl->shm, width, height, cookie, false, 1);
|
||||
|
||||
wl_subsurface_set_position(
|
||||
win->render_timer_sub_surface,
|
||||
win->render_timer_surface.sub,
|
||||
margin / term->scale,
|
||||
(term->margins.top + term->cell_height - margin) / term->scale);
|
||||
|
||||
render_osd(
|
||||
term,
|
||||
win->render_timer_surface, win->render_timer_sub_surface,
|
||||
win->render_timer_surface.surf,
|
||||
win->render_timer_surface.sub,
|
||||
buf, text,
|
||||
term->colors.table[0], term->colors.table[8 + 1],
|
||||
width, height, margin, margin);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue