Skip to content
Snippets Groups Projects
Commit cc7cb9f3 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

comparing floats with == and != is bad indeed.

parent 43a7d315
No related branches found
No related tags found
No related merge requests found
git HEAD
* Fix -F --zoom 100 not working in Gnome+Unity when compiling feh with
gcc and enabled optimizations (not -O0)
Thu, 14 Feb 2013 12:52:02 +0100 Daniel Friesel <derf+feh@finalrewind.org> Thu, 14 Feb 2013 12:52:02 +0100 Daniel Friesel <derf+feh@finalrewind.org>
* Release v2.9.1 * Release v2.9.1
......
...@@ -477,7 +477,7 @@ void winwidget_render_image(winwidget winwid, int resize, int force_alias) ...@@ -477,7 +477,7 @@ void winwidget_render_image(winwidget winwid, int resize, int force_alias)
double old_zoom = winwid->zoom; double old_zoom = winwid->zoom;
winwid->zoom = 0.01 * opt.default_zoom; winwid->zoom = 0.01 * opt.default_zoom;
if (winwid->zoom != 1.0) { if (opt.default_zoom != 100) {
if ((winwid->im_h * winwid->zoom) > max_h) if ((winwid->im_h * winwid->zoom) > max_h)
winwid->zoom = old_zoom; winwid->zoom = old_zoom;
else if ((winwid->im_w * winwid->zoom) > max_w) else if ((winwid->im_w * winwid->zoom) > max_w)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment