summaryrefslogtreecommitdiffstats
path: root/config.def.h
diff options
context:
space:
mode:
authorN-R-K <79544946+N-R-K@users.noreply.github.com>2021-12-01 13:27:17 +0100
committerGitHub <noreply@github.com>2021-12-01 13:27:17 +0100
commit79b8fefcc45d6279c28505ab3d07f539fb9726ff (patch)
tree80b5c68330ef2114e009dae260305d750feee00c /config.def.h
parent5e0b715ecd243d6556389e599d54eac2088f6890 (diff)
downloadnsxiv-79b8fefcc45d6279c28505ab3d07f539fb9726ff.tar.zst
bring back zoom_levels (#156)
this still keeps the shorter zoom logic, but adds back the zoom_levels array so that stay close to sxiv. for users who would like to have the zoom step behavior see: https://github.com/nsxiv/nsxiv/pull/156#issuecomment-975182631
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/config.def.h b/config.def.h
index 99dd8ba..0db7a9b 100644
--- a/config.def.h
+++ b/config.def.h
@@ -32,10 +32,13 @@ static const suffixmode_t TITLE_SUFFIXMODE = SUFFIX_BASENAME;
#endif
#ifdef _IMAGE_CONFIG
-/* zoom level of 1.0 means 100% */
-static const float ZOOM_MIN = 0.01;
-static const float ZOOM_MAX = 20.0;
-static const float ZOOM_STEP = 1.2599210498948732; /* 2^(1/3) */
+/* levels (in percent) to use when zooming via '-' and '+':
+ * (first/last value is used as min/max zoom level)
+ */
+static const float zoom_levels[] = {
+ 12.5, 25.0, 50.0, 75.0,
+ 100.0, 150.0, 200.0, 400.0, 800.0
+};
/* default slideshow delay (in sec, overwritten via -S option): */
static const int SLIDESHOW_DELAY = 5;