From: Yann Dirson Date: Sun, 16 Feb 2014 16:12:43 +0000 (+0100) Subject: Curses: parametrize hardcoded values for captures pieces, fixing minishogi display. X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=8f60f0c7cf426038ad2fbb5c7061335ed8a5a7cd;p=gnushogi.git Curses: parametrize hardcoded values for captures pieces, fixing minishogi display. --- diff --git a/NEWS b/NEWS index 7c9be91..e82931a 100644 --- a/NEWS +++ b/NEWS @@ -10,7 +10,7 @@ Changes in version 1.4.2 (unreleased): - display a message on wrong input * Fixed Curses mode display: - reversed column number for MiniShogi - - clock position for MiniShogi + - clock and captures position for MiniShogi - layout fixes, notably when using only 80 columns * Minor code cleanups. diff --git a/gnushogi/cursesdsp.c b/gnushogi/cursesdsp.c index 98cec52..d2b336b 100644 --- a/gnushogi/cursesdsp.c +++ b/gnushogi/cursesdsp.c @@ -446,8 +446,8 @@ Curses_help(void) } -static const short x0[2] = { 54, 2 }; -static const short y0[2] = { 20, 4 }; +static const short x0[2] = { MARGIN + 5*NO_COLS + 4, 2 }; +static const short y0[2] = { 4 + 2 * (NO_ROWS - 1), 4 }; /*