nsxivde4649f
Build-time option for default thumbnail size; fixes issue #207
+6 −3
3 files changed
- M Makefile +1 −1
- M config.def.h +3 −0
- M thumbs.c +2 −2
| @@ -1,4 +1,4 @@ | |||
| 1 | − | VERSION := git-20151028 | |
| 1 | + | VERSION := git-20151220 | |
| 2 | 2 | ||
| 3 | 3 | PREFIX := /usr/local | |
| 4 | 4 | MANPREFIX := $(PREFIX)/share/man | |
| @@ -56,6 +56,9 @@ static const bool ALPHA_LAYER = false; | |||
| 56 | 56 | /* thumbnail sizes in pixels (width == height): */ | |
| 57 | 57 | static const int thumb_sizes[] = { 32, 64, 96, 128, 160 }; | |
| 58 | 58 | ||
| 59 | + | /* thumbnail size at startup, index into thumb_sizes[]: */ | |
| 60 | + | static const int THUMB_SIZE = 3; | |
| 61 | + | ||
| 59 | 62 | #endif | |
| 60 | 63 | #ifdef _MAPPINGS_CONFIG | |
| 61 | 64 | ||
| @@ -170,8 +170,8 @@ void tns_init(tns_t *tns, fileinfo_t *files, const int *cnt, int *sel, | |||
| 170 | 170 | tns->win = win; | |
| 171 | 171 | tns->dirty = false; | |
| 172 | 172 | ||
| 173 | − | tns->zl = 0; | |
| 174 | − | tns_zoom(tns, 1); | |
| 173 | + | tns->zl = THUMB_SIZE; | |
| 174 | + | tns_zoom(tns, 0); | |
| 175 | 175 | ||
| 176 | 176 | if ((homedir = getenv("XDG_CACHE_HOME")) == NULL || homedir[0] == '\0') { | |
| 177 | 177 | homedir = getenv("HOME"); | |