From: <ave...@us...> - 2007-12-16 22:10:12
|
Revision: 4902 http://gemrb.svn.sourceforge.net/gemrb/?rev=4902&view=rev Author: avenger_teambg Date: 2007-12-16 14:10:14 -0800 (Sun, 16 Dec 2007) Log Message: ----------- added zefklop's patch to always turn console background black Modified Paths: -------------- gemrb/trunk/gemrb/GemRB.cpp gemrb/trunk/gemrb/includes/win32def.h Modified: gemrb/trunk/gemrb/GemRB.cpp =================================================================== --- gemrb/trunk/gemrb/GemRB.cpp 2007-12-14 21:56:39 UTC (rev 4901) +++ gemrb/trunk/gemrb/GemRB.cpp 2007-12-16 22:10:14 UTC (rev 4902) @@ -57,5 +57,9 @@ } core->Main(); delete( core ); +#ifndef WIN32 + //reinitialize the console colors. + printf("\033[%sm","0") ; +#endif return 0; } Modified: gemrb/trunk/gemrb/includes/win32def.h =================================================================== --- gemrb/trunk/gemrb/includes/win32def.h 2007-12-14 21:56:39 UTC (rev 4901) +++ gemrb/trunk/gemrb/includes/win32def.h 2007-12-16 22:10:14 UTC (rev 4902) @@ -118,21 +118,21 @@ SetConsoleCursorPosition(hConsole, coord); \ } #else -#define BLACK printf("\033[0m\033[30m"); -#define RED printf("\033[0m\033[31m"); -#define GREEN printf("\033[0m\033[32m"); -#define BROWN printf("\033[0m\033[33m"); -#define BLUE printf("\033[0m\033[34m"); -#define MAGENTA printf("\033[0m\033[35m"); -#define CYAN printf("\033[0m\033[36m"); -#define WHITE printf("\033[0m\033[37m"); -#define LIGHT_RED printf("\033[1m\033[31m"); -#define LIGHT_GREEN printf("\033[1m\033[32m"); -#define YELLOW printf("\033[1m\033[33m"); -#define LIGHT_BLUE printf("\033[1m\033[34m"); -#define LIGHT_MAGENTA printf("\033[1m\033[35m"); -#define LIGHT_CYAN printf("\033[1m\033[36m"); -#define LIGHT_WHITE printf("\033[1m\033[37m"); +#define BLACK printf("\033[0m\033[30;40m"); +#define RED printf("\033[0m\033[31;40m"); +#define GREEN printf("\033[0m\033[32;40m"); +#define BROWN printf("\033[0m\033[33;40m"); +#define BLUE printf("\033[0m\033[34;40m"); +#define MAGENTA printf("\033[0m\033[35;40m"); +#define CYAN printf("\033[0m\033[36;40m"); +#define WHITE printf("\033[0m\033[37;40m"); +#define LIGHT_RED printf("\033[1m\033[31;40m"); +#define LIGHT_GREEN printf("\033[1m\033[32;40m"); +#define YELLOW printf("\033[1m\033[33;40m"); +#define LIGHT_BLUE printf("\033[1m\033[34;40m"); +#define LIGHT_MAGENTA printf("\033[1m\033[35;40m"); +#define LIGHT_CYAN printf("\033[1m\033[36;40m"); +#define LIGHT_WHITE printf("\033[1m\033[37;40m"); #define gotoxy(x,y) printf("\033[%d;%dH", y, x) #endif This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |