summaryrefslogtreecommitdiffstats
path: root/thumbs.c
diff options
context:
space:
mode:
Diffstat (limited to 'thumbs.c')
-rw-r--r--thumbs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thumbs.c b/thumbs.c
index 0357836..5b1b069 100644
--- a/thumbs.c
+++ b/thumbs.c
@@ -284,7 +284,7 @@ bool tns_load(tns_t *tns, int n, const fileinfo_t *file,
w = imlib_image_get_width();
h = imlib_image_get_height();
- if (pw > w && ph > h) {
+ if (pw > w && ph > h && (pw - ph >= 0) == (w - h >= 0)) {
zw = (float) pw / (float) w;
zh = (float) ph / (float) h;
if (zw < zh) {