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

winwidget: resize: only check scale_down when not in fullscreen mode (closes #192)

parent 849103d8
No related branches found
No related tags found
No related merge requests found
git HEAD
* Fix --scale-down breaking image centering in fullscreen mode
Sun, 17 May 2015 20:40:36 +0200 Daniel Friesel <derf+feh@finalrewind.org>
* Release v2.13
......
......@@ -443,8 +443,8 @@ void winwidget_render_image(winwidget winwid, int resize, int force_alias)
feh_calc_needed_zoom(&(winwid->zoom), winwid->im_w, winwid->im_h, winwid->w, winwid->h);
if (resize && !opt.scale_down && (winwid->full_screen
|| (opt.geom_flags & (WidthValue | HeightValue)))) {
if (resize && (winwid->full_screen
|| (!opt.scale_down && (opt.geom_flags & (WidthValue | HeightValue))))) {
int smaller; /* Is the image smaller than screen? */
int max_w = 0, max_h = 0;
......
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