summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNRK <nrk@disroot.org>2021-09-16 22:37:19 +0200
committerN-R-K <79544946+N-R-K@users.noreply.github.com>2021-09-16 22:48:15 +0200
commitf37fa0975f3b54ac1a644b394595cfe4b836121c (patch)
tree8e26a30f62408bf5ea9fc5f4dcec6945216f9819
parent25a5a540109cc7b3820daec86bb174b4b96ecb84 (diff)
downloadnsxiv-f37fa0975f3b54ac1a644b394595cfe4b836121c.tar.zst
config.def.h: change enums to static const ints
-rw-r--r--config.def.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/config.def.h b/config.def.h
index 0d0b6a9..dfc94e1 100644
--- a/config.def.h
+++ b/config.def.h
@@ -1,10 +1,8 @@
#ifdef _WINDOW_CONFIG
/* default window dimensions (overwritten via -g option): */
-enum {
- WIN_WIDTH = 800,
- WIN_HEIGHT = 600
-};
+static const int WIN_WIDTH = 800;
+static const int WIN_HEIGHT = 600;
/* colors and font are configured with 'background', 'foreground' and
* 'font' X resource properties.
@@ -12,7 +10,6 @@ enum {
*/
#endif
-
#ifdef _TITLE_CONFIG
/* default title prefix */
@@ -26,7 +23,6 @@ static const char *TITLE_PREFIX = "nsxiv - ";
static const suffixmode_t TITLE_SUFFIXMODE = SUFFIX_BASENAME;
#endif
-
#ifdef _IMAGE_CONFIG
/* levels (in percent) to use when zooming via '-' and '+':
@@ -38,7 +34,7 @@ static const float zoom_levels[] = {
};
/* default slideshow delay (in sec, overwritten via -S option): */
-enum { SLIDESHOW_DELAY = 5 };
+static const int SLIDESHOW_DELAY = 5;
/* gamma correction: the user-visible ranges [-GAMMA_RANGE, 0] and
* (0, GAMMA_RANGE] are mapped to the ranges [0, 1], and (1, GAMMA_MAX].