diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-07-30 18:33:17 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-07-30 18:33:17 +0000 |
| commit | d8ab96b8d90d76bed2cc6f261a3676081df13161 (patch) | |
| tree | 98e1f0ba9f4db83fd66079515e39f20980d76663 /render.c | |
| parent | render: remove #if 0 code (diff) | |
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.
Diffstat (limited to 'render.c')
| -rw-r--r-- | render.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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); |
