diff options
author | Drew DeVault <ddevault@linode.com> | 2016-07-18 16:21:45 -0400 |
---|---|---|
committer | Drew DeVault <ddevault@linode.com> | 2016-07-28 14:36:49 -0400 |
commit | 11e7ca044c61f0bcce95a90b50814f780f769f21 (patch) | |
tree | 70a4b6d6e476471a7f290f8c1278b01b275358be /sway/config.c | |
parent | Initial pass on HiDPI support (diff) | |
download | sway-11e7ca044c61f0bcce95a90b50814f780f769f21.tar.gz sway-11e7ca044c61f0bcce95a90b50814f780f769f21.tar.zst sway-11e7ca044c61f0bcce95a90b50814f780f769f21.zip |
Update hidpi support to latest wlc API
Diffstat (limited to 'sway/config.c')
-rw-r--r-- | sway/config.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sway/config.c b/sway/config.c index 83129524..25566213 100644 --- a/sway/config.c +++ b/sway/config.c | |||
@@ -863,12 +863,12 @@ void apply_output_config(struct output_config *oc, swayc_t *output) { | |||
863 | output->width = oc->width; | 863 | output->width = oc->width; |
864 | output->height = oc->height; | 864 | output->height = oc->height; |
865 | 865 | ||
866 | sway_log(L_DEBUG, "Set %s size to %ix%i", oc->name, oc->width, oc->height); | 866 | sway_log(L_DEBUG, "Set %s size to %ix%i (%d)", oc->name, oc->width, oc->height, oc->scale); |
867 | struct wlc_size new_size = { .w = oc->width, .h = oc->height }; | 867 | struct wlc_size new_size = { .w = oc->width, .h = oc->height }; |
868 | wlc_output_set_resolution(output->handle, &new_size); | 868 | wlc_output_set_resolution(output->handle, &new_size, (uint32_t)oc->scale); |
869 | } | 869 | } else if (oc && oc->scale != 1) { |
870 | if (oc && oc->scale != 1) { | 870 | const struct wlc_size *new_size = wlc_output_get_resolution(output->handle); |
871 | wlc_output_set_scale(output->handle, (int32_t)oc->scale); | 871 | wlc_output_set_resolution(output->handle, new_size, (uint32_t)oc->scale); |
872 | } | 872 | } |
873 | 873 | ||
874 | // Find position for it | 874 | // Find position for it |