]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - test/knight.c
ncurses 6.1 - patch 20190525
[ncurses.git] / test / knight.c
index b95996c608178b45eda852376796916560abd2c6..50cba37f8682e3f6a60d7ed2ea49f6dc18d2cdb0 100644 (file)
@@ -1,5 +1,5 @@
 /****************************************************************************
- * Copyright (c) 1998-2013,2017 Free Software Foundation, Inc.              *
+ * Copyright (c) 1998-2018,2019 Free Software Foundation, Inc.              *
  *                                                                          *
  * Permission is hereby granted, free of charge, to any person obtaining a  *
  * copy of this software and associated documentation files (the            *
@@ -33,7 +33,7 @@
  * Eric S. Raymond <esr@snark.thyrsus.com> July 22 1995.  Mouse support
  * added September 20th 1995.
  *
- * $Id: knight.c,v 1.43 2017/09/10 00:13:02 tom Exp $
+ * $Id: knight.c,v 1.45 2019/04/20 20:34:55 tom Exp $
  */
 
 #include <test.priv.h>
@@ -75,7 +75,9 @@ static WINDOW *boardwin;      /* the board window */
 static WINDOW *helpwin;                /* the help window */
 static WINDOW *msgwin;         /* the message window */
 
+#if HAVE_USE_DEFAULT_COLORS
 static bool d_option;
+#endif
 
 static chtype minus = '-';     /* possible-move character */
 static chtype oldch;
@@ -417,7 +419,7 @@ drawMove(SQUARES squares, int count_moves, chtype tchar, int oldy, int oldx, int
                } else {
                    cellmove(i, j);
                    if (winch(boardwin) == minus)
-                       waddch(boardwin, count_moves ? ' ' : minus);
+                       waddch(boardwin, ' ');
                }
            }
        }