mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-15 15:41:24 +01:00
move fireTimer to linux-common code
This commit is contained in:
parent
368d2b82d6
commit
264f34d97d
1 changed files with 3 additions and 11 deletions
|
@ -1034,14 +1034,6 @@ gtk_util_engineProgressCallback( XW_UtilCtxt* uc )
|
|||
#endif
|
||||
} /* gtk_util_engineProgressCallback */
|
||||
|
||||
static void
|
||||
fireTimer( GtkAppGlobals* globals, XWTimerReason why )
|
||||
{
|
||||
TimerProc proc = globals->cGlobals.timerProcs[why];
|
||||
void* closure = globals->cGlobals.timerClosures[why];
|
||||
(*proc)( closure, why );
|
||||
} /* fireTimer */
|
||||
|
||||
static void
|
||||
cancelTimer( GtkAppGlobals* globals, XWTimerReason why )
|
||||
{
|
||||
|
@ -1062,7 +1054,7 @@ pentimer_idle_func( gpointer data )
|
|||
gettimeofday( &tv, NULL );
|
||||
|
||||
if ( (tv.tv_usec - globals->penTv.tv_usec) >= globals->penTimerInterval) {
|
||||
fireTimer( globals, TIMER_PENDOWN );
|
||||
linuxFireTimer( globals, TIMER_PENDOWN );
|
||||
callAgain = XP_FALSE;
|
||||
}
|
||||
|
||||
|
@ -1074,7 +1066,7 @@ score_timer_func( gpointer data )
|
|||
{
|
||||
GtkAppGlobals* globals = (GtkAppGlobals*)data;
|
||||
|
||||
fireTimer( globals, TIMER_TIMERTICK );
|
||||
linuxFireTimer( globals, TIMER_TIMERTICK );
|
||||
|
||||
return XP_FALSE;
|
||||
} /* score_timer_func */
|
||||
|
@ -1085,7 +1077,7 @@ heartbeat_timer_func( gpointer data )
|
|||
GtkAppGlobals* globals = (GtkAppGlobals*)data;
|
||||
|
||||
if ( !globals->cGlobals.params->noHeartbeat ) {
|
||||
fireTimer( globals, TIMER_HEARTBEAT );
|
||||
linuxFireTimer( globals, TIMER_HEARTBEAT );
|
||||
}
|
||||
|
||||
return (gint)0;
|
||||
|
|
Loading…
Reference in a new issue