diff options
author | Nicolas Bacca | 2002-11-19 08:27:31 +0000 |
---|---|---|
committer | Nicolas Bacca | 2002-11-19 08:27:31 +0000 |
commit | 7053741b2819cb490afd33bd9b9767da0f391a57 (patch) | |
tree | 279e43c1dc97f61b88e4b7bdd3f7b54ac26521bc /backends | |
parent | 28080b27df558814d8a923fa00775ece318c8932 (diff) | |
download | scummvm-rg350-7053741b2819cb490afd33bd9b9767da0f391a57.tar.gz scummvm-rg350-7053741b2819cb490afd33bd9b9767da0f391a57.tar.bz2 scummvm-rg350-7053741b2819cb490afd33bd9b9767da0f391a57.zip |
Change initial directory list size
svn-id: r5614
Diffstat (limited to 'backends')
-rw-r--r-- | backends/wince/findgame.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/backends/wince/findgame.cpp b/backends/wince/findgame.cpp index 17b83bb6db..421eb91e97 100644 --- a/backends/wince/findgame.cpp +++ b/backends/wince/findgame.cpp @@ -42,7 +42,7 @@ extern Config *g_config; #define MAX_GAMES 20 -int MAX_DIRECTORY = 1; +int MAX_DIRECTORY = 40; #define MAX_DISPLAYED_DIRECTORIES 7 #define MAX_DISPLAYED_GAMES 7 @@ -526,7 +526,7 @@ void doScan() { if (wcslen(basePath) != 0) { //SendMessage(GetDlgItem(hwndDlg, IDC_LISTAVAILABLE), LB_ADDSTRING, 0, (LPARAM)TEXT("..")); if (_total_directories == MAX_DIRECTORY) { - MAX_DIRECTORY += 1; + MAX_DIRECTORY += 10; directories = (DirectoryName*)realloc(directories, MAX_DIRECTORY * sizeof(DirectoryName)); } wcscpy(directories[_total_directories++].name, TEXT("..")); @@ -549,7 +549,7 @@ void doScan() { LB_ADDSTRING, 0, (LPARAM)(work ? work + 1 : desc.cFileName)); */ if (_total_directories == MAX_DIRECTORY) { - MAX_DIRECTORY += 1; + MAX_DIRECTORY += 10; directories = (DirectoryName*)realloc(directories, MAX_DIRECTORY * sizeof(DirectoryName)); } wcscpy(directories[_total_directories++].name, (work ? work + 1 : desc.cFileName)); @@ -564,7 +564,7 @@ void doScan() { LB_ADDSTRING, 0, (LPARAM)(work ? work + 1 : desc.cFileName)); */ if (_total_directories == MAX_DIRECTORY) { - MAX_DIRECTORY += 1; + MAX_DIRECTORY += 10; directories = (DirectoryName*)realloc(directories, MAX_DIRECTORY * sizeof(DirectoryName)); } wcscpy(directories[_total_directories++].name, (work ? work + 1 : desc.cFileName)); @@ -935,4 +935,4 @@ void handleSelectGame(int x, int y) { } } -#endif
\ No newline at end of file +#endif |