diff options
author | emersion <contact@emersion.fr> | 2017-12-18 14:13:07 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2017-12-18 14:13:07 +0100 |
commit | c815d6d1a97fe940052f079bd8eb7f174f5ab004 (patch) | |
tree | a6b58e92550c237057b72e6fb6598f3fcca0730c /sway/commands | |
parent | 1aab9ae3e74d15e2c346acbab2ef2def59db72eb (diff) | |
download | sway-c815d6d1a97fe940052f079bd8eb7f174f5ab004.tar.xz |
Add support for fractional output scale
Diffstat (limited to 'sway/commands')
-rw-r--r-- | sway/commands/output.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/commands/output.c b/sway/commands/output.c index d71e4d8d..7988e3e4 100644 --- a/sway/commands/output.c +++ b/sway/commands/output.c @@ -144,7 +144,7 @@ struct cmd_results *cmd_output(int argc, char **argv) { goto fail; } char *end; - output->scale = strtol(argv[i], &end, 10); + output->scale = strtof(argv[i], &end); if (*end) { error = cmd_results_new(CMD_INVALID, "output", "Invalid scale."); @@ -278,7 +278,7 @@ struct cmd_results *cmd_output(int argc, char **argv) { } sway_log(L_DEBUG, "Config stored for output %s (enabled: %d) (%dx%d@%fHz " - "position %d,%d scale %d transform %d) (bg %s %s)", + "position %d,%d scale %f transform %d) (bg %s %s)", output->name, output->enabled, output->width, output->height, output->refresh_rate, output->x, output->y, output->scale, output->transform, output->background, output->background_option); |