mirror of https://github.com/snes9xgit/snes9x.git
win32: Populate cheat dialog in correct order.
This commit is contained in:
parent
5af624da32
commit
4b6130262e
|
@ -8724,6 +8724,7 @@ INT_PTR CALLBACK DlgCheater(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam)
|
||||||
lvi.cchTextMax = CHEAT_SIZE;
|
lvi.cchTextMax = CHEAT_SIZE;
|
||||||
lvi.pszText = wstring;
|
lvi.pszText = wstring;
|
||||||
lvi.lParam = counter; // we save the internal cheat index as lParam of list entry
|
lvi.lParam = counter; // we save the internal cheat index as lParam of list entry
|
||||||
|
lvi.iItem = counter;
|
||||||
curr_idx = ListView_InsertItem(GetDlgItem(hDlg,IDC_CHEAT_LIST), &lvi);
|
curr_idx = ListView_InsertItem(GetDlgItem(hDlg,IDC_CHEAT_LIST), &lvi);
|
||||||
|
|
||||||
ct.state[counter] = Untouched;
|
ct.state[counter] = Untouched;
|
||||||
|
|
Loading…
Reference in New Issue