]> skyeroc.xyz Git - dgamelaunch/commitdiff
Adjust the position of the watching-menu bottom lines
authorPasi Kallinen <paxed@alt.org>
Sun, 18 Oct 2009 08:46:06 +0000 (08:46 +0000)
committerPasi Kallinen <paxed@alt.org>
Sun, 18 Oct 2009 08:46:06 +0000 (08:46 +0000)
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@477 db0b04b0-f4d1-0310-9a6d-de3e77497b0e

dgamelaunch.c

index c9ad3cecca79b32d822b6452639cb2bff0af6d02..4a9b67c12d230b136c2aed7e10589118946b0e1e 100644 (file)
@@ -459,12 +459,12 @@ inprogressmenu (int gameid)
 
         }
 
-      mvprintw ((local_LINES-2), 1, "'.' changes sort mode (current: %s)", SORTMODE_NAME[sortmode]);
-
+      i = local_LINES-3;
+      if ((i+3 > max_height) && len) i = max_height+1;
       if (len > 0)
-         mvprintw ((local_LINES-3), 1, "(%d-%d of %d)", offset + 1, offset + i, len);
-      mvaddstr ((local_LINES-1), 1,
-                "Watch which game? (letter + enter, 'q' quits, '>'/'<' for more/less) => ");
+         mvprintw ((i), 1, "(%d-%d of %d)", offset + 1, offset + i, len);
+      mvprintw ((i+1), 1, "'.' changes sort mode (current: %s)", SORTMODE_NAME[sortmode]);
+      mvaddstr ((i+2), 1, "Watch which game? (letter + enter, 'q' quits, '>'/'<' for more/less) => ");
 
       refresh ();