Add support for fractional output scale

This commit is contained in:
emersion 2017-12-18 14:13:07 +01:00
parent 1aab9ae3e7
commit c815d6d1a9
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
3 changed files with 4 additions and 4 deletions

View file

@ -111,7 +111,7 @@ void apply_output_config(struct output_config *oc, swayc_t *output) {
set_mode(wlr_output, oc->width, oc->height, oc->refresh_rate);
}
if (oc && oc->scale > 0) {
sway_log(L_DEBUG, "Set %s scale to %d", oc->name, oc->scale);
sway_log(L_DEBUG, "Set %s scale to %f", oc->name, oc->scale);
wlr_output_set_scale(wlr_output, oc->scale);
}
if (oc && oc->transform >= 0) {