mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-07 00:28:56 +00:00
Use mutexes in LogManager to make it threadsafe, as suggested by beistin's patch. Change some LogManager function names to be consistent with Dolphin's naming conventions.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7433 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
7a9a47376f
commit
021193b22f
10 changed files with 132 additions and 137 deletions
|
@ -142,7 +142,7 @@ void CFrame::ToggleConsole(bool bShow)
|
|||
// If the console doesn't exist, we create it
|
||||
if (!GetConsoleWindow())
|
||||
{
|
||||
ConsoleListener *Console = LogManager::GetInstance()->getConsoleListener();
|
||||
ConsoleListener *Console = LogManager::GetInstance()->GetConsoleListener();
|
||||
Console->Open();
|
||||
}
|
||||
else
|
||||
|
@ -747,7 +747,7 @@ void CFrame::ResizeConsole()
|
|||
/*max out the width in the word wrap mode*/ 100;
|
||||
int WindowHeight = InternalHeight + MenuBar;
|
||||
// Resize buffer
|
||||
ConsoleListener* Console = LogManager::GetInstance()->getConsoleListener();
|
||||
ConsoleListener* Console = LogManager::GetInstance()->GetConsoleListener();
|
||||
Console->PixelSpace(0,0, InternalWidth, InternalHeight, false);
|
||||
// Move the window to hide the border
|
||||
MoveWindow(GetConsoleWindow(), -Border-wxBorder, -MenuBar-wxBorder,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue