Mercurial > hg > dmlib
diff tools/64vw.c @ 2248:2e656da1b10b
Cleanup.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 15 Jun 2019 20:20:47 +0300 |
parents | 79ece1072143 |
children | 48b48251610a |
line wrap: on
line diff
--- a/tools/64vw.c Sat Jun 15 20:19:21 2019 +0300 +++ b/tools/64vw.c Sat Jun 15 20:20:47 2019 +0300 @@ -452,7 +452,7 @@ case SDLK_SPACE: case SDLK_UP: case SDLK_RIGHT: - if (currIndex < noptFilenames2 - 1) + if (currIndex + 1 < noptFilenames2) currIndex++; else currIndex = noptFilenames2 - 1; @@ -466,7 +466,7 @@ break; case SDLK_PAGEUP: - if (currIndex < noptFilenames2 - 1 - SET_SKIP_AMOUNT) + if (currIndex + 1 + SET_SKIP_AMOUNT < noptFilenames2) currIndex += SET_SKIP_AMOUNT; else currIndex = noptFilenames2 - 1;