aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarry Jeffery <harry@exec64.co.uk>2019-02-27 20:05:37 +0000
committerHarry Jeffery <harry@exec64.co.uk>2019-02-27 20:05:37 +0000
commit4a2ce2e9ee9453eb429628490b3729d26ba9143f (patch)
tree73868e7be014be0793317e31b8961936e6355911
parentcd0684a2cbd4e68a51ef595c32c0faf1bf1ac41a (diff)
downloadimv-4a2ce2e9ee9453eb429628490b3729d26ba9143f.tar.gz
Fix copy-paste error in resizing mode parsing
-rw-r--r--src/imv.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/imv.c b/src/imv.c
index 29e3a20..24054da 100644
--- a/src/imv.c
+++ b/src/imv.c
@@ -569,17 +569,17 @@ static bool parse_upscaling_method(struct imv *imv, const char *method)
static bool parse_resizing_mode(struct imv *imv, const char *method)
{
if (!strcmp(method, "none")) {
- imv->upscaling_method = RESIZE_NONE;
+ imv->resize_mode = RESIZE_NONE;
return true;
}
if (!strcmp(method, "resize")) {
- imv->upscaling_method = RESIZE_ONLY;
+ imv->resize_mode = RESIZE_ONLY;
return true;
}
if (!strcmp(method, "recenter")) {
- imv->upscaling_method = RESIZE_CENTER;
+ imv->resize_mode = RESIZE_CENTER;
return true;
}