diff --git a/source/wayland/display.c b/source/wayland/display.c index c73748147..fec4b08a2 100644 --- a/source/wayland/display.c +++ b/source/wayland/display.c @@ -215,6 +215,8 @@ wayland_surface_protocol_enter(void *data, struct wl_surface *wl_surface, struct return; if ( ( output->scale < 1 ) || ( output->scale > 3 ) ) return; + // FIXME: hidpi + // wl_surface_set_buffer_scale( wl_surface, output->scale ); ++wayland->scales[output->scale - 1]; if ( wayland->scale < output->scale ) @@ -294,8 +296,8 @@ display_surface_commit(cairo_surface_t *surface) wl_surface_damage(wayland->surface, 0, 0, pool->width, pool->height); wl_surface_attach(wayland->surface, buffer->buffer, 0, 0); - if ( wl_surface_get_version(wayland->surface) >= WL_SURFACE_SET_BUFFER_SCALE_SINCE_VERSION ) - wl_surface_set_buffer_scale(wayland->surface, wayland->scale); + // FIXME: hidpi + // wl_surface_set_buffer_scale(wayland->surface, wayland->scale); buffer->released = FALSE; wl_surface_commit( wayland->surface );