diff options
author | Drew DeVault <sir@cmpwn.com> | 2016-12-27 17:23:45 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-27 17:23:45 -0700 |
commit | 1882cb673394303e858642d3f688108400950a6c (patch) | |
tree | 5394070845ba8412f2d6273df4756f057b7e32ea | |
parent | 51c367dfdc19409e2c09466b839cee08e4670d46 (diff) | |
parent | f84217d07c1e9a54d9416014d16c3bb6d09b62d2 (diff) |
Merge pull request #1017 from zandrmartin/swaylock-scaling-mode
fix #971
-rw-r--r-- | swaylock/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/swaylock/main.c b/swaylock/main.c index f738b09d..f004a8d5 100644 --- a/swaylock/main.c +++ b/swaylock/main.c @@ -236,7 +236,7 @@ void render_image(struct window *window, cairo_surface_t *image, enum scaling_mo case SCALING_MODE_FILL: { double window_ratio = (double) wwidth / wheight; - double bg_ratio = wheight; + double bg_ratio = width / height; if (window_ratio > bg_ratio) { double scale = (double) wwidth / width; @@ -348,7 +348,7 @@ int main(int argc, char **argv) { " -v, --version Show the version number and quit.\n" " -i, --image [<output>:]<path> Display the given image.\n" " -u, --no-unlock-indicator Disable the unlock indicator.\n" - " -f, --daemonize Detach from the controlling terminal.\n" + " -f, --daemonize Detach from the controlling terminal.\n" " --socket <socket> Use the specified socket.\n"; |