[*] Bug fix: ConsoleTTY.NT.cpp was reporting buffer size, not screen size
[*] Move ConosleTTY.*.*pp's ready for ConsoleTTY
This commit is contained in:
parent
13caca23e7
commit
95a8388807
@ -6,9 +6,9 @@
|
||||
Author: Reece
|
||||
***/
|
||||
#include <Source/RuntimeInternal.hpp>
|
||||
#include "Console.hpp"
|
||||
#include "../Console.hpp"
|
||||
#include "ConsoleTTY.NT.hpp"
|
||||
#include "ColorConvert.hpp"
|
||||
#include "../ColorConvert.hpp"
|
||||
#include <Source/Console/ConsoleStd/ConsoleStd.hpp>
|
||||
|
||||
namespace Aurora::Console
|
||||
@ -16,7 +16,7 @@ namespace Aurora::Console
|
||||
static HANDLE gConsole {INVALID_HANDLE_VALUE};
|
||||
static COORD gSavedCoord {};
|
||||
|
||||
static HANDLE GetTTYHandle()
|
||||
HANDLE GetTTYHandle()
|
||||
{
|
||||
if (gConsole != INVALID_HANDLE_VALUE)
|
||||
{
|
||||
@ -212,7 +212,8 @@ namespace Aurora::Console
|
||||
return {};
|
||||
}
|
||||
|
||||
return AuMakePair(AuStaticCast<AuUInt32>(csbi.dwSize.X), AuStaticCast<AuUInt32>(csbi.dwSize.Y));
|
||||
return AuMakePair(AuStaticCast<AuUInt32>(csbi.srWindow.Right - csbi.srWindow.Left + 1),
|
||||
AuStaticCast<AuUInt32>(csbi.srWindow.Bottom - csbi.srWindow.Top + 1));
|
||||
}
|
||||
|
||||
AUKN_SYM void TTYStorePos()
|
Loading…
Reference in New Issue
Block a user