mirror of
https://github.com/swaywm/sway.git
synced 2025-11-14 06:59:47 -05:00
Initial testing on hidpi clients
This commit is contained in:
parent
0913eff915
commit
61184e3208
4 changed files with 6 additions and 2 deletions
|
|
@ -75,6 +75,7 @@ static struct buffer *create_buffer(struct window *window, struct buffer *buf,
|
|||
buf->surface = cairo_image_surface_create_for_data(data, CAIRO_FORMAT_ARGB32, width, height, stride);
|
||||
buf->cairo = cairo_create(buf->surface);
|
||||
buf->pango = pango_cairo_create_context(buf->cairo);
|
||||
pango_cairo_context_set_resolution(buf->pango, 96 * 2);
|
||||
|
||||
wl_buffer_add_listener(buf->buffer, &buffer_listener, buf);
|
||||
return buf;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue