From: Pasi Kallinen Date: Mon, 3 May 2010 16:27:42 +0000 (+0000) Subject: Don't put the info lines too low on the page in the watching menu. X-Git-Tag: v1.6.1-roc-dev~163 X-Git-Url: https://skyeroc.xyz/gitweb/?a=commitdiff_plain;h=431ef1e7915ca0d8f9f66a2e07728477e634b562;p=dgamelaunch Don't put the info lines too low on the page in the watching menu. git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@547 db0b04b0-f4d1-0310-9a6d-de3e77497b0e --- diff --git a/dgamelaunch.c b/dgamelaunch.c index efa6bf7..1a41162 100644 --- a/dgamelaunch.c +++ b/dgamelaunch.c @@ -698,6 +698,9 @@ inprogressmenu (int gameid) shm_sem_post(shm_dg_data); btm = dgl_local_LINES-btm_banner_hei-top_banner_hei; + if (len <= max_height) + btm = i+1; + if (len > 0) { mvprintw ((btm+top_banner_hei), 1, "(%d-%d of %d)", offset + 1, offset + i, len); mvaddstr ((btm+2+top_banner_hei), 1, "Watch which game? ('?' for help) => ");