This commit is contained in:
Eric House 2020-01-24 09:22:49 -08:00
parent 598be04bef
commit b96c9cc438

View file

@ -1060,7 +1060,11 @@ static bool
handleFlip( void* closure, int XP_UNUSED(key) ) handleFlip( void* closure, int XP_UNUSED(key) )
{ {
CursesBoardGlobals* bGlobals = (CursesBoardGlobals*)closure; 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; return XP_TRUE;
} /* handleFlip */ } /* handleFlip */