mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-29 08:34:37 +01:00
add and call util_turnChanged
This commit is contained in:
parent
b614b9b14c
commit
93f95588d8
2 changed files with 6 additions and 0 deletions
|
@ -3367,6 +3367,8 @@ boardTurnChanged( void* p_board )
|
|||
setTimerIf( board );
|
||||
|
||||
board->scoreBoardInvalid = XP_TRUE;
|
||||
|
||||
util_turnChanged( board->util );
|
||||
} /* boardTurnChanged */
|
||||
|
||||
static void
|
||||
|
|
|
@ -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))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue