mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-08 22:33:08 +02:00
Use wx style ListBox fast fill: Freeze and Thaw
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1976 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
cd76970d8f
commit
1b12bc38ac
@ -107,8 +107,8 @@ void CCodeWindow::CreateSymbolsMenu()
|
|||||||
" that are in the first 4 MB of memory, if you are debugging a game that load .rel"
|
" that are in the first 4 MB of memory, if you are debugging a game that load .rel"
|
||||||
" files with code to memory you may want to increase that to perhaps 8 MB, you can do"
|
" files with code to memory you may want to increase that to perhaps 8 MB, you can do"
|
||||||
" that from SymbolDB::SaveMap().")
|
" that from SymbolDB::SaveMap().")
|
||||||
);
|
);
|
||||||
|
|
||||||
pSymbolsMenu->AppendSeparator();
|
pSymbolsMenu->AppendSeparator();
|
||||||
pSymbolsMenu->Append(IDM_CREATESIGNATUREFILE, _T("&Create signature file..."));
|
pSymbolsMenu->Append(IDM_CREATESIGNATUREFILE, _T("&Create signature file..."));
|
||||||
pSymbolsMenu->Append(IDM_USESIGNATUREFILE, _T("&Use signature file..."));
|
pSymbolsMenu->Append(IDM_USESIGNATUREFILE, _T("&Use signature file..."));
|
||||||
@ -242,14 +242,16 @@ void CCodeWindow::OnSymbolsMenu(wxCommandEvent& event)
|
|||||||
void CCodeWindow::NotifyMapLoaded()
|
void CCodeWindow::NotifyMapLoaded()
|
||||||
{
|
{
|
||||||
g_symbolDB.FillInCallers();
|
g_symbolDB.FillInCallers();
|
||||||
symbols->Show(false); // hide it for faster filling
|
//symbols->Show(false); // hide it for faster filling
|
||||||
|
symbols->Freeze(); // HyperIris: wx style fast filling
|
||||||
symbols->Clear();
|
symbols->Clear();
|
||||||
for (SymbolDB::XFuncMap::iterator iter = g_symbolDB.GetIterator(); iter != g_symbolDB.End(); iter++)
|
for (SymbolDB::XFuncMap::iterator iter = g_symbolDB.GetIterator(); iter != g_symbolDB.End(); iter++)
|
||||||
{
|
{
|
||||||
int idx = symbols->Append(wxString::FromAscii(iter->second.name.c_str()));
|
int idx = symbols->Append(wxString::FromAscii(iter->second.name.c_str()));
|
||||||
symbols->SetClientData(idx, (void*)&iter->second);
|
symbols->SetClientData(idx, (void*)&iter->second);
|
||||||
}
|
}
|
||||||
symbols->Show(true);
|
symbols->Thaw();
|
||||||
|
//symbols->Show(true);
|
||||||
Update();
|
Update();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user