Skip to content

Commit 18975d4

Browse files
author
thyttan
committed
dtlaunch: FIXME comments
1 parent f4875f4 commit 18975d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/dtlaunch/app-b2.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@
3737
(parseInt(s.read("dtlaunch.page")) ?? 0);
3838

3939
const INIT_PAGE_APP_ZEROTH = page*4;
40-
const INIT_PAGE_APP_LAST = Math.min(page*4+3, apps.length-1);
40+
const INIT_PAGE_APP_LAST = (page*4+3<apps.length-1)?page*4+3:apps.length-1;//Math.min(page*4+3, apps.length-1); // FIXME:What is fastest?
4141
for (let i = INIT_PAGE_APP_ZEROTH; i <= INIT_PAGE_APP_LAST; i++) { // Initially only load icons for the current page.
4242
if (apps[i].icon)
4343
apps[i].icon = s.read(apps[i].icon); // should just be a link to a memory area
4444
}
4545

4646
let Napps = apps.length;
47-
let Npages = Math.ceil(Napps/4);
47+
let Npages = parseInt(Napps/4+1); //Math.ceil(Napps/4); // FIXME: What is fastest?
4848
let maxPage = Npages-1;
4949
let selected = -1;
5050
//let oldselected = -1;

0 commit comments

Comments
 (0)