Krolyxon
Commit de4649f

Branches

Refs →

nsxivde4649f

Build-time option for default thumbnail size; fixes issue #207

Author
Bert Münnich
Date
2015-12-20 13:10 +0100
Committer
Bert Münnich · 2015-12-20 13:10 +0100
Parent
a7d39b0
Commit
de4649fc283afc4e3c8b9aefab2f89d1c83803b1

+6 −3

3 files changed

  1. M Makefile +1 −1
  2. M config.def.h +3 −0
  3. M thumbs.c +2 −2
M Makefile View
@@ -1,4 +1,4 @@
1−VERSION := git-20151028
1+VERSION := git-20151220
22
33 PREFIX := /usr/local
44 MANPREFIX := $(PREFIX)/share/man
M config.def.h View
@@ -56,6 +56,9 @@ static const bool ALPHA_LAYER = false;
5656 /* thumbnail sizes in pixels (width == height): */
5757 static const int thumb_sizes[] = { 32, 64, 96, 128, 160 };
5858
59+/* thumbnail size at startup, index into thumb_sizes[]: */
60+static const int THUMB_SIZE = 3;
61+
5962 #endif
6063 #ifdef _MAPPINGS_CONFIG
6164
M thumbs.c View
@@ -170,8 +170,8 @@ void tns_init(tns_t *tns, fileinfo_t *files, const int *cnt, int *sel,
170170 tns->win = win;
171171 tns->dirty = false;
172172
173− tns->zl = 0;
174− tns_zoom(tns, 1);
173+ tns->zl = THUMB_SIZE;
174+ tns_zoom(tns, 0);
175175
176176 if ((homedir = getenv("XDG_CACHE_HOME")) == NULL || homedir[0] == '\0') {
177177 homedir = getenv("HOME");