mirror of
https://github.com/GerbilSoft/rom-properties.git
synced 2025-06-18 19:45:41 -04:00
[rpcli] vt.cpp, win32_console_print_ansi_color(): Get the console handle from ci_stdout.
This commit is contained in:
parent
917f0a497a
commit
e9dcd3f131
@ -383,13 +383,7 @@ static constexpr inline bool vt_isalpha(char c)
|
||||
*/
|
||||
int win32_console_print_ansi_color(const char *str)
|
||||
{
|
||||
HANDLE hStdOut = GetStdHandle(STD_OUTPUT_HANDLE);
|
||||
assert(hStdOut != nullptr && hStdOut != INVALID_HANDLE_VALUE);
|
||||
if (!hStdOut || hStdOut == INVALID_HANDLE_VALUE) {
|
||||
// Cannot access the console handle...
|
||||
return -ENOTTY;
|
||||
}
|
||||
|
||||
HANDLE hStdOut = ci_stdout.hConsole;
|
||||
WORD wAttributes = ci_stdout.wAttributesOrig;
|
||||
// Bold/bright tracking
|
||||
// FIXME: Set one of these if wAttributesOrig has FOREGROUND_INTENSITY?
|
||||
|
Loading…
Reference in New Issue
Block a user