summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorBert <ber.t@gmx.com>2011-08-19 13:09:22 +0200
committerBert <ber.t@gmx.com>2011-08-19 13:09:22 +0200
commit421f01202238ad56c5b2edc2e1b26194482b614f (patch)
treed624c439578b16835adeeba2f114f7e0bc354d96 /main.c
parent1c68a34463f9eb94da9a8289b659ce02677b865f (diff)
downloadnsxiv-421f01202238ad56c5b2edc2e1b26194482b614f.tar.zst
Renamed application modes
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/main.c b/main.c
index cd6f8e0..d3c8e6f 100644
--- a/main.c
+++ b/main.c
@@ -137,7 +137,7 @@ void update_title() {
float size;
const char *unit;
- if (mode == MODE_THUMBS) {
+ if (mode == MODE_THUMB) {
n = snprintf(win_title, TITLE_LEN, "sxiv: [%d/%d] %s",
tns.cnt ? tns.sel + 1 : 0, tns.cnt,
tns.cnt ? files[tns.sel].name : "");
@@ -238,13 +238,13 @@ int main(int argc, char **argv) {
img_init(&img, &win);
if (options->thumbnails) {
- mode = MODE_THUMBS;
+ mode = MODE_THUMB;
tns_init(&tns, filecnt);
while (!tns_load(&tns, 0, &files[0], 0))
remove_file(0, 0);
tns.cnt = 1;
} else {
- mode = MODE_NORMAL;
+ mode = MODE_IMAGE;
tns.thumbs = NULL;
load_image(fileidx);
}