From b3fb5538e874a2610630e4edf14f9b837d9540c3 Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Mon, 1 Mar 2004 21:17:05 +0000 Subject: [PATCH] Show total number of games in progress below the list, useful if there are more than fits on the screen. git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@263 db0b04b0-f4d1-0310-9a6d-de3e77497b0e --- Changelog | 4 ++++ dgamelaunch.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/Changelog b/Changelog index 3bbe743..7533ef8 100644 --- a/Changelog +++ b/Changelog @@ -1,3 +1,7 @@ +1.4.4 (????/??/??) + * Show total number of games in progress below the list, useful if + there are more than fits on the screen. + 1.4.3 (2004/02/28) * Make ttyplay use the 'strip' value it remembered from last view. * Don't fail if client-supplied window size seems incorrect. diff --git a/dgamelaunch.c b/dgamelaunch.c index d09e327..489db19 100644 --- a/dgamelaunch.c +++ b/dgamelaunch.c @@ -337,6 +337,8 @@ inprogressmenu () (time (&ctime) - games[i + offset]->idle_time) % 60); } + if (len > 0) + mvprintw (21, 1, "(%d-%d of %d)", offset + 1, offset + i, len); mvaddstr (23, 1, "Watch which game? (any key refreshes, 'q' quits, '>'/'<' for more/less) => "); refresh ();