summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorZandr Martin <zandrmartin@gmail.com>2016-12-27 17:54:50 -0600
committerZandr Martin <zandrmartin@gmail.com>2016-12-27 17:54:50 -0600
commit4930451e32becde9397fb5079a55c24ab08f1c70 (patch)
tree3ada15b9622ca24fd01783930c606ac1cd545a97 /main.c
parent434e46b9d7d2d8b4427e2a9461f1ced350e48e02 (diff)
fix #971
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index f738b09..f004a8d 100644
--- a/main.c
+++ b/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";