From 6ea02f3064736b7f53e5b28c16ee74f5665ce1b8 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sat, 16 Jul 2016 10:04:18 -0400 Subject: Initial pass on HiDPI support --- sway/config.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sway/config.c') diff --git a/sway/config.c b/sway/config.c index 5e1887a6..83129524 100644 --- a/sway/config.c +++ b/sway/config.c @@ -867,6 +867,9 @@ void apply_output_config(struct output_config *oc, swayc_t *output) { struct wlc_size new_size = { .w = oc->width, .h = oc->height }; wlc_output_set_resolution(output->handle, &new_size); } + if (oc && oc->scale != 1) { + wlc_output_set_scale(output->handle, (int32_t)oc->scale); + } // Find position for it if (oc && oc->x != -1 && oc->y != -1) { -- cgit v1.2.3