From b397c301789b73357c2f989a7a77cb7991a8956c Mon Sep 17 00:00:00 2001 From: ehouse Date: Tue, 26 Feb 2008 13:46:33 +0000 Subject: [PATCH] add and call util_turnChanged --- xwords4/common/board.c | 2 ++ xwords4/common/util.h | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/xwords4/common/board.c b/xwords4/common/board.c index 15cd1e6e4..7d9e29473 100644 --- a/xwords4/common/board.c +++ b/xwords4/common/board.c @@ -3367,6 +3367,8 @@ boardTurnChanged( void* p_board ) setTimerIf( board ); board->scoreBoardInvalid = XP_TRUE; + + util_turnChanged( board->util ); } /* boardTurnChanged */ static void diff --git a/xwords4/common/util.h b/xwords4/common/util.h index 08749d543..112974530 100644 --- a/xwords4/common/util.h +++ b/xwords4/common/util.h @@ -124,6 +124,7 @@ typedef struct UtilVtable { XP_U16 nVisibleRows ); void (*m_util_yOffsetChange)(XW_UtilCtxt* uc, XP_U16 oldOffset, XP_U16 newOffset ); + void (*m_util_turnChanged)(XW_UtilCtxt* uc); void (*m_util_notifyGameOver)( XW_UtilCtxt* uc ); @@ -198,6 +199,9 @@ struct XW_UtilCtxt { #define util_yOffsetChange( uc, o, n ) \ (uc)->vtable->m_util_yOffsetChange((uc), (o), (n) ) +#define util_turnChanged( uc ) \ + (uc)->vtable->m_util_turnChanged((uc) ) + #define util_notifyGameOver( uc ) \ (uc)->vtable->m_util_notifyGameOver((uc))