summaryrefslogtreecommitdiffstats
path: root/image.c
diff options
context:
space:
mode:
Diffstat (limited to 'image.c')
-rw-r--r--image.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/image.c b/image.c
index 9a9c531..fa10ab9 100644
--- a/image.c
+++ b/image.c
@@ -402,6 +402,9 @@ bool img_fit(img_t *img)
zh = (float) img->win->h / (float) img->h;
switch (img->scalemode) {
+ case SCALE_FILL:
+ z = MAX(zw, zh);
+ break;
case SCALE_WIDTH:
z = zw;
break;