Krolyxon
Commit f37fa09

Branches

Refs →

nsxivf37fa09

config.def.h: change enums to static const ints

Author
NRK
Date
2021-09-17 02:37 +0600
Committer
N-R-K · 2021-09-17 02:48 +0600
Parent
25a5a54
Commit
f37fa0975f3b54ac1a644b394595cfe4b836121c

+3 −7

1 file changed

  1. M config.def.h +3 −7
M config.def.h View
@@ -1,10 +1,8 @@
11 #ifdef _WINDOW_CONFIG
22
33 /* default window dimensions (overwritten via -g option): */
4−enum {
5− WIN_WIDTH = 800,
6− WIN_HEIGHT = 600
7−};
4+static const int WIN_WIDTH = 800;
5+static const int WIN_HEIGHT = 600;
86
97 /* colors and font are configured with 'background', 'foreground' and
108 * 'font' X resource properties.
@@ -12,7 +10,6 @@ enum {
1210 */
1311
1412 #endif
15−
1613 #ifdef _TITLE_CONFIG
1714
1815 /* default title prefix */
@@ -26,7 +23,6 @@ static const char *TITLE_PREFIX = "nsxiv - ";
2623 static const suffixmode_t TITLE_SUFFIXMODE = SUFFIX_BASENAME;
2724
2825 #endif
29−
3026 #ifdef _IMAGE_CONFIG
3127
3228 /* levels (in percent) to use when zooming via '-' and '+':
@@ -38,7 +34,7 @@ static const float zoom_levels[] = {
3834 };
3935
4036 /* default slideshow delay (in sec, overwritten via -S option): */
41−enum { SLIDESHOW_DELAY = 5 };
37+static const int SLIDESHOW_DELAY = 5;
4238
4339 /* gamma correction: the user-visible ranges [-GAMMA_RANGE, 0] and
4440 * (0, GAMMA_RANGE] are mapped to the ranges [0, 1], and (1, GAMMA_MAX].