From 2afa5512342f9662cb5d8f94ed060dbd69a74c3d Mon Sep 17 00:00:00 2001 From: Yann Dirson Date: Sat, 19 Oct 2013 22:02:52 +0200 Subject: [PATCH] Fix build of --with-curses mode. Broken by 6030715dffdadf4402dccf6a8bf9966cfab2be1d and not checked soon enough :( --- gnushogi/cursesdsp.c | 12 ++++++------ gnushogi/gnushogi.h | 1 - 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/gnushogi/cursesdsp.c b/gnushogi/cursesdsp.c index 7b37fc6..412bdc0 100644 --- a/gnushogi/cursesdsp.c +++ b/gnushogi/cursesdsp.c @@ -98,17 +98,17 @@ Curses_ClearScreen(void) static void -ClearMessage(void) +gotoXY(short x, short y) { - gotoXY(TAB, 6); - ClearEoln(); + move(y - 1, x - 1); } static void -gotoXY(short x, short y) +ClearMessage(void) { - move(y - 1, x - 1); + gotoXY(TAB, 6); + ClearEoln(); } @@ -239,7 +239,7 @@ ShowPlayers(void) } -static void +void Curses_ShowPrompt(void) { Curses_ShowSidetoMove(); diff --git a/gnushogi/gnushogi.h b/gnushogi/gnushogi.h index 52a77ae..2640a21 100644 --- a/gnushogi/gnushogi.h +++ b/gnushogi/gnushogi.h @@ -1047,7 +1047,6 @@ extern void ShowCurrentMove(short pnt, short f, short t); extern void ListGame(void); extern void ShowMessage(char *s); extern void ClearScreen(void); -extern void UpdateClocks(void); extern void DoDebug(void); extern void DoTable(short table[NO_SQUARES]); extern void ShowPostnValues(void); -- 1.7.0.4