Krolyxon
Commit 00e6cd2

Branches

Refs →

nsxiv00e6cd2

Show image dimension in window title

Author
Bert
Date
2011-05-22 19:42 +0200
Parent
65a2c86
Commit
00e6cd2bd1a7bfc0b9fcbf958cefee07ef41cb71

+5 −4

2 files changed

  1. M Makefile +1 −1
  2. M main.c +4 −3
M Makefile View
@@ -1,6 +1,6 @@
11 all: sxiv
22
3−VERSION=git-20110516
3+VERSION=git-20110522
44
55 CC?=gcc
66 DESTDIR?=
M main.c View
@@ -135,9 +135,10 @@ void update_title() {
135135 } else {
136136 size = filesize;
137137 size_readable(&size, &unit);
138− n = snprintf(win_title, TITLE_LEN, "sxiv: [%d/%d] <%d%%> (%.2f%s) %s",
139− fileidx + 1, filecnt, (int) (img.zoom * 100.0), size, unit,
140− filenames[fileidx]);
138+ n = snprintf(win_title, TITLE_LEN,
139+ "sxiv: [%d/%d] <%d%%> <%dx%d> (%.2f%s) %s",
140+ fileidx + 1, filecnt, (int) (img.zoom * 100.0), img.w, img.h,
141+ size, unit, filenames[fileidx]);
141142 }
142143
143144 if (n >= TITLE_LEN) {