Module Name: src
Committed By: rillig
Date: Thu May 19 22:24:54 UTC 2022
Modified Files:
src/games/gomoku: bdisp.c
Log Message:
gomoku: clean up coordinate for the currently selected spot
There is no need to make this coordinate dependent on the board size.
No binary change.
To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 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.34 src/games/gomoku/bdisp.c:1.35
--- src/games/gomoku/bdisp.c:1.34 Thu May 19 22:19:18 2022
+++ src/games/gomoku/bdisp.c Thu May 19 22:24:54 2022
@@ -1,4 +1,4 @@
-/* $NetBSD: bdisp.c,v 1.34 2022/05/19 22:19:18 rillig Exp $ */
+/* $NetBSD: bdisp.c,v 1.35 2022/05/19 22:24:54 rillig Exp $ */
/*
* Copyright (c) 1994
@@ -34,7 +34,7 @@
#include <sys/cdefs.h>
/* @(#)bdisp.c 8.2 (Berkeley) 5/3/95 */
-__RCSID("$NetBSD: bdisp.c,v 1.34 2022/05/19 22:19:18 rillig Exp $");
+__RCSID("$NetBSD: bdisp.c,v 1.35 2022/05/19 22:24:54 rillig Exp $");
#include <curses.h>
#include <string.h>
@@ -345,7 +345,7 @@ get_coord(void)
nx = curx;
ny = cury;
for (;;) {
- mvprintw(BSZ + 3, (BSZ - 6) / 2, "(%c %d) ",
+ mvprintw(BSZ + 3, 6, "(%c %d) ",
letters[curx + 1], cury + 1);
move(scr_y(cury + 1), scr_x(curx + 1));
@@ -462,7 +462,7 @@ get_coord(void)
return SAVE;
case ' ':
case '\r':
- (void)mvaddstr(BSZ + 3, (BSZ - 6) / 2, " ");
+ (void)mvaddstr(BSZ + 3, 6, " ");
return PT(curx + 1, cury + 1);
}