mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-26 03:30:46 +00:00
Amend r5330.
git-svn-id: https://svn.eduke32.com/eduke32@5334 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
ec095fb5df
commit
4ed33de69d
1 changed files with 4 additions and 3 deletions
|
@ -122,20 +122,21 @@ static void PopulateForm(int32_t pgs)
|
||||||
j = ComboBox_AddString(hwnd, "None");
|
j = ComboBox_AddString(hwnd, "None");
|
||||||
(void)ComboBox_SetItemData(hwnd, j, 0);
|
(void)ComboBox_SetItemData(hwnd, j, 0);
|
||||||
(void)ComboBox_SetCurSel(hwnd, j);
|
(void)ComboBox_SetCurSel(hwnd, j);
|
||||||
for (dirs=finddirs,i=1; dirs != NULL; dirs=dirs->next)
|
for (dirs=finddirs,i=1,j=1; dirs != NULL; dirs=dirs->next)
|
||||||
{
|
{
|
||||||
if (Bstrcasecmp(dirs->name, "autoload") == 0)
|
if (Bstrcasecmp(dirs->name, "autoload") == 0)
|
||||||
{
|
{
|
||||||
i++;
|
j++;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
(void)ComboBox_AddString(hwnd, dirs->name);
|
(void)ComboBox_AddString(hwnd, dirs->name);
|
||||||
(void)ComboBox_SetItemData(hwnd, i, i);
|
(void)ComboBox_SetItemData(hwnd, i, j);
|
||||||
if (Bstrcasecmp(dirs->name,settings.gamedir) == 0)
|
if (Bstrcasecmp(dirs->name,settings.gamedir) == 0)
|
||||||
(void)ComboBox_SetCurSel(hwnd, i);
|
(void)ComboBox_SetCurSel(hwnd, i);
|
||||||
|
|
||||||
i++;
|
i++;
|
||||||
|
j++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue