mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-24 01:40:12 -05:00
shm: get_buffer(): remove 'copies' argument; it's not used
This commit is contained in:
parent
632b6ee0ea
commit
8df82938b0
3 changed files with 4 additions and 7 deletions
4
render.c
4
render.c
|
|
@ -441,7 +441,7 @@ grid_render(struct terminal *term)
|
|||
assert(term->width > 0);
|
||||
assert(term->height > 0);
|
||||
|
||||
struct buffer *buf = shm_get_buffer(term->wl->shm, term->width, term->height, 1 + term->render.workers.count);
|
||||
struct buffer *buf = shm_get_buffer(term->wl->shm, term->width, term->height);
|
||||
wl_surface_attach(term->window->surface, buf->wl_buf, 0, 0);
|
||||
pixman_image_t *pix = buf->pix;
|
||||
|
||||
|
|
@ -754,7 +754,7 @@ render_search_box(struct terminal *term)
|
|||
const int width = 2 * margin + max(20, term->search.len) * term->cell_width;
|
||||
const int height = 2 * margin + 1 * term->cell_height;
|
||||
|
||||
struct buffer *buf = shm_get_buffer(term->wl->shm, width, height, 1);
|
||||
struct buffer *buf = shm_get_buffer(term->wl->shm, width, height);
|
||||
|
||||
/* Background - yellow on empty/match, red on mismatch */
|
||||
pixman_color_t color = color_hex_to_pixman(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue