]> git.sur5r.net Git - c128-kasse/commitdiff
Limit Entrys to 10 per Page
authorsECuRE <sECuRE@af93e077-1a23-4f1e-9cbe-9382a9d578f5>
Fri, 28 Nov 2008 23:29:07 +0000 (23:29 +0000)
committersECuRE <sECuRE@af93e077-1a23-4f1e-9cbe-9382a9d578f5>
Fri, 28 Nov 2008 23:29:07 +0000 (23:29 +0000)
git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@84 af93e077-1a23-4f1e-9cbe-9382a9d578f5

src/credit_manager.c

index 54099b0fb3176dee072cd80eb2612b7316961454..29fdac6dbbbd062bcf3834fb629d41233f8da2df 100644 (file)
@@ -24,11 +24,11 @@ static void credit_print_screen() {
        clrscr();
        cprintf("itemz (phil_fry, sECuRE, sur5r)\r\n\r\n");
        /* 16 entries per page */
-       pages = (credits.num_items / 16);
+       pages = (credits.num_items / 10);
        if (current_credits_page > pages)
                current_credits_page = pages;
        cprintf("Datei: CREDITS (Seite %d von %d)\r\n\r\n", current_credits_page, pages);
-       for (i = (current_credits_page * 16); i < credits.num_items && i < ((current_credits_page+1) * 16); i++) {
+       for (i = (current_credits_page * 10); i < credits.num_items && i < ((current_credits_page+1) * 10); i++) {
                if (filter == NULL || strncmp(credits.credits[i].nickname, filter, filter_len) == 0) {
                        if (format_euro(buffer, 10, credits.credits[i].credit) != buffer) {
                                cprintf("Error: Could not format credit %d\r\n", credits.credits[i].credit);