diff options
author | Drew DeVault <[email protected]> | 2016-07-16 10:04:18 -0400 |
---|---|---|
committer | Drew DeVault <[email protected]> | 2016-07-28 14:36:49 -0400 |
commit | 6ea02f3064736b7f53e5b28c16ee74f5665ce1b8 (patch) | |
tree | cc3c1ac31dd51ec82167f171dfe306ed246ef22f /sway/config.c | |
parent | a5af3bce986d2bd25721f865c0c3dd37ff703eed (diff) |
Initial pass on HiDPI support
Diffstat (limited to 'sway/config.c')
-rw-r--r-- | sway/config.c | 3 |
1 files changed, 3 insertions, 0 deletions
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) { |