1
0
Fork 0
forked from fte/fteqw

fix for sys_colorconsole on windows

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2366 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
TimeServ 2006-07-29 21:09:43 +00:00
parent 084c095dc7
commit 0d6e663d60

View file

@ -471,7 +471,7 @@ void ApplyColour(unsigned int chr)
// bits 28-31 of the console chars match up to the attributes for
// the CHAR_INFO struct exactly
if (chr & CON_NONCLEARBG)
val = (chr & (CON_FGMASK|CON_BGMASK) >> CON_FGSHIFT);
val = ((chr & (CON_FGMASK|CON_BGMASK)) >> CON_FGSHIFT);
else
{
int fg = (chr & CON_FGMASK) >> CON_FGSHIFT;