render-timer: use wayl_win_subsurface_new/destroy()

This commit is contained in:
Daniel Eklöf 2021-02-12 11:53:22 +01:00
parent c8324943de
commit 438853a2d8
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
4 changed files with 10 additions and 20 deletions

View file

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