GUI: Fixed saving of m_InterfaceLogWindow and m_InterfaceConsole, one crashfix

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4140 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
John Peterson
2009-09-01 14:33:16 +00:00
parent a7c643e146
commit 334d11bf07
7 changed files with 32 additions and 34 deletions

View File

@ -44,20 +44,22 @@ ConsoleListener::~ConsoleListener()
// 100, 100, "Dolphin Log Console"
// Open console window - width and height is the size of console window
// Name is the window title
void ConsoleListener::Open(int Width, int Height, const char *Title)
void ConsoleListener::Open(bool Hidden, int Width, int Height, const char *Title)
{
#ifdef _WIN32
if (!GetConsoleWindow())
{
// Open the console window and create the window handle for GetStdHandle()
AllocConsole();
// Hide
if (Hidden) ShowWindow(GetConsoleWindow(), SW_HIDE);
// Save the window handle that AllocConsole() created
hConsole = GetStdHandle(STD_OUTPUT_HANDLE);
// Set the console window title
SetConsoleTitle(Title);
// Set letter space
LetterSpace(80, 1000);
MoveWindow(GetConsoleWindow(), 200,200, 800,800, true);
//MoveWindow(GetConsoleWindow(), 200,200, 800,800, true);
}
else
{

View File

@ -73,7 +73,7 @@ public:
ConsoleListener();
~ConsoleListener();
void Open(int Width = 100, int Height = 100, const char * Name = "Console");
void Open(bool Hidden = false, int Width = 100, int Height = 100, const char * Name = "Console");
void UpdateHandle();
void Close();
bool IsOpen();