]> granicus.if.org Git - nethack/commitdiff
curses - reinstate guicolors
authorTangles <andyrthomson@gmail.com>
Wed, 16 May 2018 11:43:05 +0000 (21:43 +1000)
committernhmall <nhmall@nethack.org>
Sun, 2 Dec 2018 16:22:54 +0000 (11:22 -0500)
win/curses/cursmisc.c

index b2d177d85abe5a7bfef0df43562764ab5f91b9fb..8ee1f68fe1113e4c931f363abf73521fa2399e18 100644 (file)
@@ -92,9 +92,9 @@ curses_toggle_color_attr(WINDOW * win, int color, int attr, int onoff)
     }
 
     /* GUI color disabled */
-    /*  if ((!iflags.wc2_guicolor) && (win != mapwin)) {
-          return;
-    } */
+    if ((!iflags.wc2_guicolor) && (win != mapwin)) {
+        return;
+    }
 
     if (color == 0) {           /* make black fg visible */
 # ifdef USE_DARKGRAY
@@ -102,7 +102,6 @@ curses_toggle_color_attr(WINDOW * win, int color, int attr, int onoff)
             if (can_change_color() && (COLORS > 16)) {
                 /* colorpair for black is already darkgray */
             } else {            /* Use bold for a bright black */
-
                 wattron(win, A_BOLD);
             }
         } else