Mercurial > geeqie.yaz
changeset 336:9122c5da1223
Fix display bug when using "Limit image size when autofitting" option.
author | zas_ |
---|---|
date | Sat, 12 Apr 2008 17:09:20 +0000 |
parents | 0cb7f0ac5c20 |
children | 0565ee45b8ac |
files | src/pixbuf-renderer.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/pixbuf-renderer.c Sat Apr 12 15:13:00 2008 +0000 +++ b/src/pixbuf-renderer.c Sat Apr 12 17:09:20 2008 +0000 @@ -2666,8 +2666,10 @@ if (pr->autofit_limit) { - w = w * pr->autofit_limit_size / 100; - h = h * pr->autofit_limit_size / 100; + gdouble factor = (gdouble)pr->autofit_limit_size / 100; + w = w * factor + 0.5; + h = h * factor + 0.5; + scale = scale * factor; } if (w < 1) w = 1;