From f489b0363b059aa7161d2a92a98c2dc8c067b8a8 Mon Sep 17 00:00:00 2001 From: Mark Oteiza Date: Sun, 15 Jan 2017 14:01:42 -0500 Subject: Show image scale in window title --- src/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index fefd1ff..a8396aa 100644 --- a/src/main.c +++ b/src/main.c @@ -585,8 +585,9 @@ int main(int argc, char** argv) /* update window title */ int len; const char *current_path = imv_navigator_selection(&nav); - len = snprintf(title, sizeof(title), "imv - [%i/%i] [%ix%i] %s [%s]", + len = snprintf(title, sizeof(title), "imv - [%i/%i] [%ix%i] [%.2f%%] %s [%s]", nav.cur_path + 1, nav.num_paths, tex.width, tex.height, + 100.0 * view.scale, current_path, scaling_label[g_options.scaling]); if(g_options.delay >= 1000) { len += snprintf(title + len, sizeof(title) - len, "[%lu/%lus]", -- cgit v1.2.3