GUI: Windows console improvements, hide the border as much as possible when docked, unlimited size, retain colors and cursor position on resize etc

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4103 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
John Peterson
2009-08-30 08:22:05 +00:00
parent 135a0818eb
commit 81483f928c
6 changed files with 225 additions and 54 deletions

View File

@ -78,10 +78,14 @@ public:
void Close();
bool IsOpen();
void LetterSpace(int Width, int Height);
void BufferWidthHeight(int BufferWidth, int BufferHeight, int ScreenWidth, int ScreenHeight, bool BufferFirst);
void PixelSpace(int Left, int Top, int Width, int Height, bool);
#ifdef _WIN32
COORD GetCoordinates(int BytesRead, int BufferWidth);
#endif
void Log(LogTypes::LOG_LEVELS, const char *Text);
//void Log(LogTypes::LOG_LEVELS, const char *Text, ...);
void ClearScreen();
void ClearScreen(bool Cursor = true);
const char *getName() const { return "Console"; }
@ -89,7 +93,6 @@ private:
#ifdef _WIN32
HWND GetHwnd(void);
HANDLE hConsole;
static const int MAX_BYTES = 1024 * 30;
#endif
};