Small fixes to the watching-screen, caused by variable height screen.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@474 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
This commit is contained in:
parent
4d3be5720c
commit
0b9067ee0a
|
@ -408,6 +408,9 @@ inprogressmenu (int gameid)
|
||||||
{
|
{
|
||||||
while (offset >= len && offset >= max_height)
|
while (offset >= len && offset >= max_height)
|
||||||
offset -= max_height;
|
offset -= max_height;
|
||||||
|
|
||||||
|
while ((offset > 0) && (offset + max_height > len))
|
||||||
|
offset--;
|
||||||
}
|
}
|
||||||
|
|
||||||
erase ();
|
erase ();
|
||||||
|
@ -479,15 +482,16 @@ inprogressmenu (int gameid)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case '>':
|
case '>':
|
||||||
if ((offset + max_height) >= len)
|
if ((offset + max_height) >= len) {
|
||||||
break;
|
if (max_height < len) offset = (len - max_height);
|
||||||
else
|
else offset = 0;
|
||||||
|
} else
|
||||||
offset += max_height;
|
offset += max_height;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case '<':
|
case '<':
|
||||||
if ((offset - max_height) < 0)
|
if ((offset - max_height) < 0)
|
||||||
break;
|
offset = 0;
|
||||||
else
|
else
|
||||||
offset -= max_height;
|
offset -= max_height;
|
||||||
break;
|
break;
|
||||||
|
@ -520,6 +524,12 @@ inprogressmenu (int gameid)
|
||||||
default:
|
default:
|
||||||
if (strchr(selectorchars, menuchoice)) {
|
if (strchr(selectorchars, menuchoice)) {
|
||||||
int sidx = strchr(selectorchars, menuchoice) - selectorchars;
|
int sidx = strchr(selectorchars, menuchoice) - selectorchars;
|
||||||
|
|
||||||
|
if (sidx > max_height) {
|
||||||
|
selected = -1;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
if (is_nhext[sidx]) /* Cannot watch NhExt game */
|
if (is_nhext[sidx]) /* Cannot watch NhExt game */
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue