]> granicus.if.org Git - nethack/commitdiff
win32tty bit
authornethack.allison <nethack.allison>
Fri, 10 Oct 2003 04:53:17 +0000 (04:53 +0000)
committernethack.allison <nethack.allison>
Fri, 10 Oct 2003 04:53:17 +0000 (04:53 +0000)
sys/winnt/nttty.c

index a8bc29208cf485f33f7a2c5845b0fae735ed6135..d2268236bf6a439e65a15f1b2e3a3b489397ed37 100644 (file)
@@ -656,7 +656,7 @@ term_start_color(int color)
 {
 #ifdef TEXTCOLOR
         if (color >= 0 && color < CLR_MAX) {
-           foreground = (background != 0 && (color == CLR_GRAY | color == CLR_WHITE)) ?
+           foreground = (background != 0 && (color == CLR_GRAY || color == CLR_WHITE)) ?
                        ttycolors[0] : ttycolors[color];
        }
 #else