aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBert Münnich <ber.t@posteo.de>2014-09-27 22:05:21 +0200
committerBert Münnich <ber.t@posteo.de>2014-09-27 22:05:21 +0200
commitb2dbd2fed3c9cee72ac3e84036b6b08b169a376e (patch)
tree89aeffb26e71724f600713cb6ba7d13c1e47c29d
parent5fce009b73d52320aeae17f7d5c22ca740784173 (diff)
Changed image mark in thumbnail view to small rectangle
-rw-r--r--Makefile2
-rw-r--r--main.c2
-rw-r--r--thumbs.c7
3 files changed, 5 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 36f15e9..48ec0d8 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-VERSION = git-20140926
+VERSION = git-20140927
PREFIX = /usr/local
MANPREFIX = $(PREFIX)/share/man
diff --git a/main.c b/main.c
index ffc8013..dc622cf 100644
--- a/main.c
+++ b/main.c
@@ -366,7 +366,7 @@ void update_info(void)
/* update bar contents */
if (win.bar.h == 0)
return;
- mark = files[fileidx].marked ? "+ " : "";
+ mark = files[fileidx].marked ? "* " : "";
if (mode == MODE_THUMB) {
if (tns.loadnext < tns.end) {
snprintf(lt, llen, "Loading... %0*d", fw, tns.loadnext);
diff --git a/thumbs.c b/thumbs.c
index 7f17801..ede8d96 100644
--- a/thumbs.c
+++ b/thumbs.c
@@ -453,14 +453,13 @@ void tns_mark(tns_t *tns, int n, bool mark)
unsigned long col = win->fullscreen ? win->fscol : win->bgcol;
int x = t->x + t->w, y = t->y + t->h;
- win_draw_rect(win, x - 2, y + 1, 1, 2, true, 1, col);
- win_draw_rect(win, x + 1, y - 2, 2, 1, true, 1, col);
+ win_draw_rect(win, x - 1, y + 1, 1, 2, true, 1, col);
+ win_draw_rect(win, x + 1, y - 1, 2, 1, true, 1, col);
if (mark)
col = win->selcol;
- win_draw_rect(win, x - 1, y + 1, 6, 2, true, 1, col);
- win_draw_rect(win, x + 1, y - 1, 2, 6, true, 1, col);
+ win_draw_rect(win, x, y, 4, 4, true, 1, col);
if (!mark && n == *tns->sel)
tns_highlight(tns, n, true);