mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
render: don't call wl_surface_set_buffer_scale()
Since we don't support scaling, don't call wl_surface_set_buffer_scale(). This way, at least will get auto-scaled by the compositor.
This commit is contained in:
parent
2c3f2269fc
commit
d8ab96b8d9
1 changed files with 4 additions and 3 deletions
7
render.c
7
render.c
|
|
@ -725,13 +725,14 @@ render_update_cursor_surface(struct terminal *term)
|
|||
if (term->wl.pointer.cursor == NULL)
|
||||
return;
|
||||
|
||||
//const int scale = backend->monitor->scale;
|
||||
const int scale = 1;
|
||||
#if 0
|
||||
//const int scale = backend->monitor->scale;
|
||||
wl_surface_set_buffer_scale(term->wl.pointer.surface, scale);
|
||||
#endif
|
||||
|
||||
struct wl_cursor_image *image = term->wl.pointer.cursor->images[0];
|
||||
|
||||
wl_surface_set_buffer_scale(term->wl.pointer.surface, scale);
|
||||
|
||||
wl_surface_attach(
|
||||
term->wl.pointer.surface, wl_cursor_image_get_buffer(image), 0, 0);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue