From b96c9cc438c361f3f2c27f279b3ec9c7a00af4e1 Mon Sep 17 00:00:00 2001 From: Eric House Date: Fri, 24 Jan 2020 09:22:49 -0800 Subject: [PATCH] fix flip --- xwords4/linux/cursesboard.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xwords4/linux/cursesboard.c b/xwords4/linux/cursesboard.c index 063ca443f..80f248b6c 100644 --- a/xwords4/linux/cursesboard.c +++ b/xwords4/linux/cursesboard.c @@ -1060,7 +1060,11 @@ static bool handleFlip( void* closure, int XP_UNUSED(key) ) { CursesBoardGlobals* bGlobals = (CursesBoardGlobals*)closure; - bGlobals->doDraw = board_flip( bGlobals->cGlobals.game.board ); + CommonGlobals* cGlobals = &bGlobals->cGlobals; + if ( board_flip( cGlobals->game.board ) ) { + board_draw( cGlobals->game.board ); + } + return XP_TRUE; } /* handleFlip */