nsxivf37fa09
config.def.h: change enums to static const ints
+3 −7
1 file changed
- M config.def.h +3 −7
| @@ -1,10 +1,8 @@ | |||
| 1 | 1 | #ifdef _WINDOW_CONFIG | |
| 2 | 2 | ||
| 3 | 3 | /* 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; | |
| 8 | 6 | ||
| 9 | 7 | /* colors and font are configured with 'background', 'foreground' and | |
| 10 | 8 | * 'font' X resource properties. | |
| @@ -12,7 +10,6 @@ enum { | |||
| 12 | 10 | */ | |
| 13 | 11 | ||
| 14 | 12 | #endif | |
| 15 | − | ||
| 16 | 13 | #ifdef _TITLE_CONFIG | |
| 17 | 14 | ||
| 18 | 15 | /* default title prefix */ | |
| @@ -26,7 +23,6 @@ static const char *TITLE_PREFIX = "nsxiv - "; | |||
| 26 | 23 | static const suffixmode_t TITLE_SUFFIXMODE = SUFFIX_BASENAME; | |
| 27 | 24 | ||
| 28 | 25 | #endif | |
| 29 | − | ||
| 30 | 26 | #ifdef _IMAGE_CONFIG | |
| 31 | 27 | ||
| 32 | 28 | /* levels (in percent) to use when zooming via '-' and '+': | |
| @@ -38,7 +34,7 @@ static const float zoom_levels[] = { | |||
| 38 | 34 | }; | |
| 39 | 35 | ||
| 40 | 36 | /* default slideshow delay (in sec, overwritten via -S option): */ | |
| 41 | − | enum { SLIDESHOW_DELAY = 5 }; | |
| 37 | + | static const int SLIDESHOW_DELAY = 5; | |
| 42 | 38 | ||
| 43 | 39 | /* gamma correction: the user-visible ranges [-GAMMA_RANGE, 0] and | |
| 44 | 40 | * (0, GAMMA_RANGE] are mapped to the ranges [0, 1], and (1, GAMMA_MAX]. | |