From 43a04c4757f4a20c3b9b1487ea7894c0f3e73708 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bert=20M=C3=BCnnich?= Date: Tue, 4 Feb 2014 23:03:53 +0100 Subject: Revised scale mode and zoom level handling - Scale mode is not reset to default value upon image loading anymore - New default key binding to change mode to scale-down - Removed scale mode setting from config.h - Removed -d command line option, as this is now the default at startup --- image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'image.c') diff --git a/image.c b/image.c index ec63e85..b56ebbc 100644 --- a/image.c +++ b/image.c @@ -74,6 +74,7 @@ void img_init(img_t *img, win_t *win) img->im = NULL; img->win = win; + img->scalemode = options->scalemode; img->zoom = options->zoom; img->zoom = MAX(img->zoom, zoom_min); img->zoom = MIN(img->zoom, zoom_max); @@ -333,7 +334,6 @@ bool img_load(img_t *img, const fileinfo_t *file) img->w = imlib_image_get_width(); img->h = imlib_image_get_height(); - img->scalemode = options->scalemode; img->checkpan = true; img->dirty = true; -- cgit v1.2.3