fixed a bug in the aboutbox scrolly credits
This commit is contained in:
parent
75e56280c1
commit
839f66924c
|
@ -26,7 +26,7 @@
|
||||||
|
|
||||||
#define ABOUT_TIMER_ID 110222
|
#define ABOUT_TIMER_ID 110222
|
||||||
#define PER_PAGE_TEAM 23
|
#define PER_PAGE_TEAM 23
|
||||||
#define TEAM 26
|
#define TEAM 25
|
||||||
#define SIZE_SCROLL_BUFFER PER_PAGE_TEAM + TEAM
|
#define SIZE_SCROLL_BUFFER PER_PAGE_TEAM + TEAM
|
||||||
const char *team[TEAM] = { "Guillaume Duhamel",
|
const char *team[TEAM] = { "Guillaume Duhamel",
|
||||||
"Normmatt",
|
"Normmatt",
|
||||||
|
@ -36,7 +36,6 @@ const char *team[TEAM] = { "Guillaume Duhamel",
|
||||||
"Pascal Giard (evilynux)",
|
"Pascal Giard (evilynux)",
|
||||||
"Ben Jaques (masscat)",
|
"Ben Jaques (masscat)",
|
||||||
"Jeff Bland",
|
"Jeff Bland",
|
||||||
"Andres Delikat",
|
|
||||||
"Riccardo Magliocchetti",
|
"Riccardo Magliocchetti",
|
||||||
"Max Tabachenko (CrazyMax)",
|
"Max Tabachenko (CrazyMax)",
|
||||||
"zeromus",
|
"zeromus",
|
||||||
|
@ -102,6 +101,7 @@ BOOL CALLBACK AboutBox_Proc (HWND dialog, UINT message,WPARAM wparam,LPARAM lpar
|
||||||
char buf[4096];
|
char buf[4096];
|
||||||
memset(buf, 0, sizeof(buf));
|
memset(buf, 0, sizeof(buf));
|
||||||
for (int i = 0; i < PER_PAGE_TEAM; i++)
|
for (int i = 0; i < PER_PAGE_TEAM; i++)
|
||||||
|
if(i+scroll_start < SIZE_SCROLL_BUFFER)
|
||||||
strcat(buf, (char *)scroll_buffer[i + scroll_start]);
|
strcat(buf, (char *)scroll_buffer[i + scroll_start]);
|
||||||
scroll_start++;
|
scroll_start++;
|
||||||
if (scroll_start >= SIZE_SCROLL_BUFFER)
|
if (scroll_start >= SIZE_SCROLL_BUFFER)
|
||||||
|
|
Loading…
Reference in New Issue