diff options
| author | Daniel Friesel <derf@finalrewind.org> | 2012-02-26 10:38:53 +0100 | 
|---|---|---|
| committer | Daniel Friesel <derf@finalrewind.org> | 2012-02-26 10:38:53 +0100 | 
| commit | b257e011c4390900f14491e2cffe38b2d00892ec (patch) | |
| tree | 87c8ee56fc266677dccd49a309fd5085d3f04b4d | |
| parent | bf52095c2a870571475b6a7731428f5533882ac8 (diff) | |
fix zoom_default for --scale-down
| -rw-r--r-- | ChangeLog | 2 | ||||
| -rw-r--r-- | src/keyevents.c | 8 | 
2 files changed, 7 insertions, 3 deletions
| @@ -5,6 +5,8 @@ git HEAD      * format specifier %P now prints the number of pixels with k/M suffix,        like %S. Printing the program name ("feh") is no longer supported      * feh --list now uses %S/%P to print image size and amount of pixels +    * Fix zoom_default key (caused blurry images in some cases due to a bad +      workaround)  Thu, 02 Feb 2012 21:04:06 +0100  Daniel Friesel <derf@finalrewind.org> diff --git a/src/keyevents.c b/src/keyevents.c index 0ada751..fd8a4d2 100644 --- a/src/keyevents.c +++ b/src/keyevents.c @@ -607,9 +607,11 @@ void feh_event_handle_keypress(XEvent * ev)  			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; +		/* +		 * --scale-down used to do weird stuff for zoom = 1.0, but setting +		 * it to another value here is not the way to go. Also, couldn't +		 * reproduce the issue -- 2012-02-16 +		 */  	}  	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); | 
