From 431ef1e7915ca0d8f9f66a2e07728477e634b562 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Mon, 3 May 2010 16:27:42 +0000 Subject: [PATCH] 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 --- dgamelaunch.c | 3 +++ 1 file changed, 3 insertions(+) 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) => ");