From 1b12bc38acc1d7a391102475349b4e3ef6fbffc1 Mon Sep 17 00:00:00 2001 From: hyperiris Date: Wed, 21 Jan 2009 18:08:12 +0000 Subject: [PATCH] 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 --- Source/Core/DebuggerWX/Src/CodeWindowSJP.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Source/Core/DebuggerWX/Src/CodeWindowSJP.cpp b/Source/Core/DebuggerWX/Src/CodeWindowSJP.cpp index 2a87c27428..63d66acad1 100644 --- a/Source/Core/DebuggerWX/Src/CodeWindowSJP.cpp +++ b/Source/Core/DebuggerWX/Src/CodeWindowSJP.cpp @@ -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" " files with code to memory you may want to increase that to perhaps 8 MB, you can do" " that from SymbolDB::SaveMap().") - ); - + ); + pSymbolsMenu->AppendSeparator(); pSymbolsMenu->Append(IDM_CREATESIGNATUREFILE, _T("&Create signature file...")); pSymbolsMenu->Append(IDM_USESIGNATUREFILE, _T("&Use signature file...")); @@ -242,14 +242,16 @@ void CCodeWindow::OnSymbolsMenu(wxCommandEvent& event) void CCodeWindow::NotifyMapLoaded() { 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(); for (SymbolDB::XFuncMap::iterator iter = g_symbolDB.GetIterator(); iter != g_symbolDB.End(); iter++) { int idx = symbols->Append(wxString::FromAscii(iter->second.name.c_str())); symbols->SetClientData(idx, (void*)&iter->second); } - symbols->Show(true); + symbols->Thaw(); + //symbols->Show(true); Update(); }