mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-05 20:45:49 +01:00
add and call util_turnChanged
This commit is contained in:
parent
dfe0249490
commit
b397c30178
2 changed files with 6 additions and 0 deletions
|
@ -3367,6 +3367,8 @@ boardTurnChanged( void* p_board )
|
||||||
setTimerIf( board );
|
setTimerIf( board );
|
||||||
|
|
||||||
board->scoreBoardInvalid = XP_TRUE;
|
board->scoreBoardInvalid = XP_TRUE;
|
||||||
|
|
||||||
|
util_turnChanged( board->util );
|
||||||
} /* boardTurnChanged */
|
} /* boardTurnChanged */
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
@ -124,6 +124,7 @@ typedef struct UtilVtable {
|
||||||
XP_U16 nVisibleRows );
|
XP_U16 nVisibleRows );
|
||||||
void (*m_util_yOffsetChange)(XW_UtilCtxt* uc, XP_U16 oldOffset,
|
void (*m_util_yOffsetChange)(XW_UtilCtxt* uc, XP_U16 oldOffset,
|
||||||
XP_U16 newOffset );
|
XP_U16 newOffset );
|
||||||
|
void (*m_util_turnChanged)(XW_UtilCtxt* uc);
|
||||||
|
|
||||||
void (*m_util_notifyGameOver)( XW_UtilCtxt* uc );
|
void (*m_util_notifyGameOver)( XW_UtilCtxt* uc );
|
||||||
|
|
||||||
|
@ -198,6 +199,9 @@ struct XW_UtilCtxt {
|
||||||
#define util_yOffsetChange( uc, o, n ) \
|
#define util_yOffsetChange( uc, o, n ) \
|
||||||
(uc)->vtable->m_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 ) \
|
#define util_notifyGameOver( uc ) \
|
||||||
(uc)->vtable->m_util_notifyGameOver((uc))
|
(uc)->vtable->m_util_notifyGameOver((uc))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue