Module Name: src Committed By: rillig Date: Mon May 16 22:03:16 UTC 2022
Modified Files: src/games/gomoku: bdisp.c Log Message: gomoku: highlight the last played move To generate a diff of this commit: cvs rdiff -u -r1.26 -r1.27 src/games/gomoku/bdisp.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/games/gomoku/bdisp.c diff -u src/games/gomoku/bdisp.c:1.26 src/games/gomoku/bdisp.c:1.27 --- src/games/gomoku/bdisp.c:1.26 Mon May 16 21:48:45 2022 +++ src/games/gomoku/bdisp.c Mon May 16 22:03:16 2022 @@ -1,4 +1,4 @@ -/* $NetBSD: bdisp.c,v 1.26 2022/05/16 21:48:45 rillig Exp $ */ +/* $NetBSD: bdisp.c,v 1.27 2022/05/16 22:03:16 rillig Exp $ */ /* * Copyright (c) 1994 @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "@(#)bdisp.c 8.2 (Berkeley) 5/3/95"; #else -__RCSID("$NetBSD: bdisp.c,v 1.26 2022/05/16 21:48:45 rillig Exp $"); +__RCSID("$NetBSD: bdisp.c,v 1.27 2022/05/16 22:03:16 rillig Exp $"); #endif #endif /* not lint */ @@ -178,7 +178,12 @@ bdisp(void) c = '.'; } else c = pcolor[sp->s_occ]; - addch(c); + if (movenum > 1 && movelog[movenum - 2] == PT(i, j)) { + attron(A_BOLD); + addch(c); + attroff(A_BOLD); + } else + addch(c); } } refresh();