From: Dale Weiler Date: Thu, 20 Dec 2012 09:44:47 +0000 (+0000) Subject: fixes X-Git-Tag: 0.1.9~23 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=42fc62046615ada8580ed2ca497cc9a4c9293a1a;p=xonotic%2Fgmqcc.git fixes --- diff --git a/con.c b/con.c index b20febd..7406cae 100644 --- a/con.c +++ b/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),