aboutsummaryrefslogtreecommitdiffstats
path: root/config.h
diff options
context:
space:
mode:
authorBert <ber.t@gmx.com>2011-01-21 10:29:31 +0100
committerBert <ber.t@gmx.com>2011-01-21 10:29:31 +0100
commit9dc46c1d81e74716f643dfab8c267cc6c3d8ec08 (patch)
tree05d0ccc9d499fc849c1ba0eb6d7321f13752c54b /config.h
parentbb12b8c0fbc4d0a791f8a2cb8c7f2d64df995a4d (diff)
downloadnsxiv-9dc46c1d81e74716f643dfab8c267cc6c3d8ec08.tar.zst
Nicer zooming
Diffstat (limited to 'config.h')
-rw-r--r--config.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/config.h b/config.h
index 32f8c37..14b2947 100644
--- a/config.h
+++ b/config.h
@@ -3,11 +3,13 @@
#define WIN_HEIGHT 600
/* */
-#define SCALE_MODE SCALE_DOWN
+#define BG_COLOR "#888888"
/* */
-#define ZOOM_MIN 12.5
-#define ZOOM_MAX 400
+#define SCALE_MODE SCALE_DOWN
/* */
-#define BG_COLOR "#888888"
+static const float zoom_levels[] = {
+ 12.5, 25.0, 50.0, 75.0,
+ 100.0, 150.0, 200.0, 400.0, 800.0
+};