Fixed list over-run in UI.
This commit is contained in:
parent
d6af9ae4f6
commit
cbe482d1a5
2 changed files with 3 additions and 3 deletions
|
@ -29,7 +29,7 @@ F256=$(pwd)/../../../f256
|
||||||
LLVM=${F256}/llvm-mos
|
LLVM=${F256}/llvm-mos
|
||||||
PATH=${LLVM}/bin:${PATH}
|
PATH=${LLVM}/bin:${PATH}
|
||||||
|
|
||||||
CLANG="mos-f256k-clang -I${F256}/include -I../../../include -I${F256}/f256lib -Os"
|
CLANG="mos-f256-clang -I${F256}/include -I../../../include -I${F256}/f256lib -Os"
|
||||||
|
|
||||||
[[ -d .builddir ]] && rm -rf .builddir
|
[[ -d .builddir ]] && rm -rf .builddir
|
||||||
mkdir -p .builddir
|
mkdir -p .builddir
|
||||||
|
|
4
src/ui.c
4
src/ui.c
|
@ -215,7 +215,7 @@ void uiGameSelect(char *path) {
|
||||||
g = g->next;
|
g = g->next;
|
||||||
}
|
}
|
||||||
// Draw list and selector.
|
// Draw list and selector.
|
||||||
for (i=0; i<h; i++) {
|
for (i=0; i<h && g != 0; i++) {
|
||||||
if (i == selector) {
|
if (i == selector) {
|
||||||
portColorSet(1, 7);
|
portColorSet(1, 7);
|
||||||
_selected = g;
|
_selected = g;
|
||||||
|
@ -372,7 +372,7 @@ static void uiTitleDraw(void) {
|
||||||
uiCenter("|_| |_|\\__,_|\\__,_|\\__,_|_|\\___|");
|
uiCenter("|_| |_|\\__,_|\\__,_|\\__,_|_|\\___|");
|
||||||
uiCenter("");
|
uiCenter("");
|
||||||
portColorSet(9, 0);
|
portColorSet(9, 0);
|
||||||
uiCenter(" Release 1.0 Beta 2 ");
|
uiCenter(" Release 1.0 Beta 3 ");
|
||||||
uiCenter("");
|
uiCenter("");
|
||||||
portColorSet(12, 0);
|
portColorSet(12, 0);
|
||||||
uiCenter("Copyright 2024 Scott Duensing, All Rights Reserved");
|
uiCenter("Copyright 2024 Scott Duensing, All Rights Reserved");
|
||||||
|
|
Loading…
Add table
Reference in a new issue