aboutsummaryrefslogtreecommitdiff
path: root/image.c
diff options
context:
space:
mode:
Diffstat (limited to 'image.c')
-rw-r--r--image.c2
1 files changed, 1 insertions, 1 deletions
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;