mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-01-31 03:50:36 +00:00
fixes
This commit is contained in:
parent
475b3152ca
commit
42fc620466
1 changed files with 3 additions and 3 deletions
6
con.c
6
con.c
|
@ -102,7 +102,7 @@ static const ansi2win[] = {
|
|||
WWHITE
|
||||
};
|
||||
|
||||
static void win_fputs(char *str, FILE *f) {
|
||||
static void win_fputs(char *str, FILE *h) {
|
||||
/* state for translate */
|
||||
int acolor;
|
||||
int wcolor;
|
||||
|
@ -117,7 +117,7 @@ static void win_fputs(char *str, FILE *f) {
|
|||
int colorpos = 1;
|
||||
|
||||
CONSOLE_SCREEN_BUFFER_INFO cinfo;
|
||||
GetConsoleScreenBufferInfo(
|
||||
GetConsoleScreenBufferInfo (
|
||||
(GMQCC_IS_STDOUT(h)) ?
|
||||
GetStdHandle(STD_OUTPUT_HANDLE) :
|
||||
GetStdHandle(STD_ERROR_HANDLE), &cinfo
|
||||
|
@ -156,7 +156,7 @@ static void win_fputs(char *str, FILE *f) {
|
|||
intense = WBLACK;
|
||||
}
|
||||
|
||||
SetConsoleTextattribute(
|
||||
SetConsoleTextAttribute (
|
||||
(h == stdout) ?
|
||||
GetStdHandle(STD_OUTPUT_HANDLE) :
|
||||
GetStdHandle(STD_ERROR_HANDLE),
|
||||
|
|
Loading…
Reference in a new issue