]> granicus.if.org Git - nethack/commitdiff
untested build fix for term_attr_fixup()
authorPatR <rankin@nethack.org>
Tue, 2 Apr 2019 14:38:57 +0000 (07:38 -0700)
committerPatR <rankin@nethack.org>
Tue, 2 Apr 2019 14:38:57 +0000 (07:38 -0700)
modified:
  sys/mac/mttymain.c
  sys/msdos/video.c
  sys/winnt/nttty.c

sys/mac/mttymain.c
sys/msdos/video.c
sys/winnt/nttty.c

index f4b762053d3aadbafbe41d63b51c6df28f9130ac..5231e84dacbedf9830cb366c698ec1b17dad470d 100644 (file)
@@ -1,4 +1,4 @@
-/* NetHack 3.6 mttymain.c      $NHDT-Date: 1432512797 2015/05/25 00:13:17 $  $NHDT-Branch: master $:$NHDT-Revision: 1.12 $ */
+/* NetHack 3.6 mttymain.c      $NHDT-Date: 1554215928 2019/04/02 14:38:48 $  $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.13 $ */
 /* Copyright (c) Jon W{tte, 1993                                       */
 /* NetHack may be freely redistributed.  See license for details.      */
 
@@ -369,6 +369,13 @@ _mt_set_colors(long *colors)
     err = set_tty_attrib(_mt_window, TTY_ATTRIB_BACKGROUND, colors[1]);
 }
 
+int
+term_attr_fixup(int attrmask)
+{
+    attrmask &= ~ATR_DIM;
+    return attrmask;
+}
+
 void
 term_end_attr(int attr)
 {
index cfa5e972e44a7d147f0f27091e9dc34a78b0aaa7..76002cdf601ed8b0d31df983457afd48181d95e5 100644 (file)
@@ -1,4 +1,4 @@
-/* NetHack 3.6 video.c $NHDT-Date: 1457207042 2016/03/05 19:44:02 $  $NHDT-Branch: chasonr $:$NHDT-Revision: 1.11 $ */
+/* NetHack 3.6 video.c $NHDT-Date: 1554215931 2019/04/02 14:38:51 $  $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.12 $ */
 /*   Copyright (c) NetHack PC Development Team 1993, 1994, 2001            */
 /*   NetHack may be freely redistributed.  See license for details. */
 /*                                                                 */
@@ -285,6 +285,12 @@ standoutend()
     g_attribute = iflags.grmode ? attrib_gr_normal : attrib_text_normal;
 }
 
+int
+term_attr_fixup(int attrmask)
+{
+    return attrmask;
+}
+
 void
 term_end_attr(int attr)
 {
index 72354c9675d88ac56bfbcff10f91ac8cb8a1b516..3233dc9cb3f3622ee134a70149d14919d1083aa8 100644 (file)
@@ -1,4 +1,4 @@
-/* NetHack 3.6 nttty.c $NHDT-Date: 1524931557 2018/04/28 16:05:57 $  $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.71 $ */
+/* NetHack 3.6 nttty.c $NHDT-Date: 1554215932 2019/04/02 14:38:52 $  $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.99 $ */
 /* Copyright (c) NetHack PC Development Team 1993    */
 /* NetHack may be freely redistributed.  See license for details. */
 
@@ -802,6 +802,12 @@ has_color(int color)
         return 0;
 }
 
+int
+term_attr_fixup(int attrmask)
+{
+    return attrmask;
+}
+
 void
 term_start_attr(int attrib)
 {