summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorN-R-K <79544946+N-R-K@users.noreply.github.com>2021-12-09 20:03:18 +0100
committerGitHub <noreply@github.com>2021-12-09 20:03:18 +0100
commit36a4847bcfa64148d056e2bb2226341fd98cea29 (patch)
tree172a9d840af645991b3e49f9bbc7d5220d9c6e44
parent79b8fefcc45d6279c28505ab3d07f539fb9726ff (diff)
downloadnsxiv-36a4847bcfa64148d056e2bb2226341fd98cea29.tar.zst
fix: compile error (#182)
* fix compile error * use variable instead of macro * Revert "use variable instead of macro" This reverts commit a14ef0b231c50e49906761010a4d4231ce4e3e36. * use local variable instead of macro * Revert "use local variable instead of macro" This reverts commit 7e049d55d94f5c003d90e1a10187356f6a7f54b2.
-rw-r--r--image.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/image.c b/image.c
index aab8f41..857a7b3 100644
--- a/image.c
+++ b/image.c
@@ -43,8 +43,8 @@ enum { DEF_GIF_DELAY = 75 };
enum { DEF_WEBP_DELAY = 75 };
#endif
-static const float ZOOM_MIN = zoom_levels[0] / 100;
-static const float ZOOM_MAX = zoom_levels[ARRLEN(zoom_levels)-1] / 100;
+#define ZOOM_MIN (zoom_levels[0] / 100)
+#define ZOOM_MAX (zoom_levels[ARRLEN(zoom_levels)-1] / 100)
void img_init(img_t *img, win_t *win)
{