patch-main.c - pkgsrc-localpatches - leot's pkgsrc LOCALPATCHES
 (HTM) hg clone https://bitbucket.org/iamleot/pkgsrc-localpatches
 (DIR) Log
 (DIR) Files
 (DIR) Refs
       ---
       patch-main.c
       ---
            1 $NetBSD$
            2 
            3 Update the contents of the title similarly to the bar (so also
            4 without the bar we have information about the current image).
            5 
            6 --- main.c.orig 2019-01-26 13:54:40.000000000 +0000
            7 +++ main.c
            8 @@ -351,8 +351,16 @@ void update_info(void)
            9  {
           10         unsigned int i, fn, fw;
           11         const char * mark;
           12 +       char title[512];
           13         win_bar_t *l = &win.bar.l, *r = &win.bar.r;
           14  
           15 +       /* update title contents */
           16 +       snprintf(title, sizeof(title), "%s - %d/%d (%d%%) %s",
           17 +           files[fileidx].name, fileidx + 1, filecnt,
           18 +           (int) (img.zoom * 100.0),
           19 +           files[fileidx].flags & FF_MARK ? "*" : "");
           20 +       win_set_title(&win, title);
           21 +
           22         /* update bar contents */
           23         if (win.bar.h == 0)
           24                 return;