diff options
Diffstat (limited to 'image.c')
-rw-r--r-- | image.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; |