aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorBert <ber.t@gmx.com>2011-05-22 19:42:33 +0200
committerBert <ber.t@gmx.com>2011-05-22 19:42:33 +0200
commit00e6cd2bd1a7bfc0b9fcbf958cefee07ef41cb71 (patch)
tree6ccf9d18512b3ae7e9888636d705850aaaacac1c /main.c
parent65a2c8625d62b5fad9bcd84007d47bd5d2c198b5 (diff)
downloadnsxiv-00e6cd2bd1a7bfc0b9fcbf958cefee07ef41cb71.tar.zst
Show image dimension in window title
Diffstat (limited to 'main.c')
-rw-r--r--main.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/main.c b/main.c
index 292c3bb..421d14f 100644
--- a/main.c
+++ b/main.c
@@ -135,9 +135,10 @@ void update_title() {
} else {
size = filesize;
size_readable(&size, &unit);
- n = snprintf(win_title, TITLE_LEN, "sxiv: [%d/%d] <%d%%> (%.2f%s) %s",
- fileidx + 1, filecnt, (int) (img.zoom * 100.0), size, unit,
- filenames[fileidx]);
+ n = snprintf(win_title, TITLE_LEN,
+ "sxiv: [%d/%d] <%d%%> <%dx%d> (%.2f%s) %s",
+ fileidx + 1, filecnt, (int) (img.zoom * 100.0), img.w, img.h,
+ size, unit, filenames[fileidx]);
}
if (n >= TITLE_LEN) {