summaryrefslogtreecommitdiff
path: root/src/keyevents.c
diff options
context:
space:
mode:
authorRichard Molitor <gattschardo@gmail.com>2015-11-15 00:24:46 +0100
committerRichard Molitor <gattschardo@gmail.com>2015-11-15 00:24:46 +0100
commitdfe3c40f80f77a800479c31a51b1f3b1f648b0ea (patch)
tree49a787447702c386ab4947615f7fc3207de20517 /src/keyevents.c
parentcbf5046f8de5b420c734903c7a4a46e9e3897293 (diff)
zoom: implement scale-down without flicker
this actually uses the old "force geometry" workaround to get the scale down behaviour (which makes the code a lot cleaner) by first setting the geometry after the window is created (to avoid creating a 0x0 sized window, which X does not like).
Diffstat (limited to 'src/keyevents.c')
-rw-r--r--src/keyevents.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/keyevents.c b/src/keyevents.c
index 4c1ed28..ba15a5d 100644
--- a/src/keyevents.c
+++ b/src/keyevents.c
@@ -612,14 +612,8 @@ void feh_event_handle_keypress(XEvent * ev)
}
else if (feh_is_kp(&keys.zoom_default, keysym, state)) {
winwid->zoom = 1.0;
- /* --scale-down will revert our operation if old_zoom == 1.0 */
- if (opt.scale_down)
- winwid->old_zoom = 1.001;
winwidget_center_image(winwid);
winwidget_render_image(winwid, 0, 0);
- /* --scale-down will also do weird stuff if zoom is 1.0 */
- if (opt.scale_down)
- winwid->zoom = 1.001;
}
else if (feh_is_kp(&keys.zoom_fit, keysym, state)) {
feh_calc_needed_zoom(&winwid->zoom, winwid->im_w, winwid->im_h, winwid->w, winwid->h);