From: Pasi Kallinen Date: Tue, 4 May 2010 14:54:07 +0000 (+0000) Subject: Adjust the watching-menu Size-column slightly. X-Git-Tag: v1.6.1-roc-dev~160 X-Git-Url: https://skyeroc.xyz/gitweb/?a=commitdiff_plain;h=80baf8a85656504e17a01efb8897ca56cd01590b;p=dgamelaunch Adjust the watching-menu Size-column slightly. git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@550 db0b04b0-f4d1-0310-9a6d-de3e77497b0e --- diff --git a/dgamelaunch.c b/dgamelaunch.c index b46be33..b4c44f7 100644 --- a/dgamelaunch.c +++ b/dgamelaunch.c @@ -624,7 +624,7 @@ inprogressmenu (int gameid) {0, SORTMODE_NONE, 1, "", "%s)"}, {1, SORTMODE_USERNAME, 4, "Username", "%-15s"}, {2, SORTMODE_GAMENUM, 21, "Game", "%-5s"}, - {3, SORTMODE_WINDOWSIZE, 29, "Size", "%s"}, + {3, SORTMODE_WINDOWSIZE, 28, " Size", "%s"}, {4, SORTMODE_STARTTIME, 37, "Start date & time", "%s"}, {5, SORTMODE_IDLETIME, 58, "Idle time", "%-10s"}, #ifdef USE_SHMEM @@ -673,8 +673,11 @@ inprogressmenu (int gameid) mvaddstr (3, 1, "The following games are in progress:"); for (di = 0; di < ARRAY_SIZE(watchcols); di++) { + char *col = watchcols[di].colname; + int x = watchcols[di].x; + while (*col == ' ') { x++; col++; } if (sortmode == watchcols[di].sortmode) attron(title_attr); - mvprintw(top_banner_hei, watchcols[di].x, watchcols[di].colname); + mvprintw(top_banner_hei, x, col); if (sortmode == watchcols[di].sortmode) attroff(title_attr); } }