mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-16 15:41:16 +01:00
add an extra slot as on other platforms
This commit is contained in:
parent
ad7b25eb52
commit
ecce7f9d2e
2 changed files with 6 additions and 6 deletions
|
@ -1037,8 +1037,8 @@ gtk_util_engineProgressCallback( XW_UtilCtxt* uc )
|
|||
static void
|
||||
fireTimer( GtkAppGlobals* globals, XWTimerReason why )
|
||||
{
|
||||
TimerProc proc = globals->cGlobals.timerProcs[why-1];
|
||||
void* closure = globals->cGlobals.timerClosures[why-1];
|
||||
TimerProc proc = globals->cGlobals.timerProcs[why];
|
||||
void* closure = globals->cGlobals.timerClosures[why];
|
||||
(*proc)( closure, why );
|
||||
} /* fireTimer */
|
||||
|
||||
|
@ -1117,8 +1117,8 @@ gtk_util_setTimer( XW_UtilCtxt* uc, XWTimerReason why, XP_U16 when,
|
|||
XP_ASSERT( 0 );
|
||||
}
|
||||
|
||||
globals->cGlobals.timerProcs[why-1] = proc;
|
||||
globals->cGlobals.timerClosures[why-1] = closure;
|
||||
globals->cGlobals.timerProcs[why] = proc;
|
||||
globals->cGlobals.timerClosures[why] = closure;
|
||||
XP_ASSERT( newSrc != 0 );
|
||||
globals->timerSources[why-1] = newSrc;
|
||||
} /* gtk_util_setTimer */
|
||||
|
|
|
@ -84,8 +84,8 @@ typedef struct CommonGlobals {
|
|||
SocketChangedFunc socketChanged;
|
||||
void* socketChangedClosure;
|
||||
|
||||
TimerProc timerProcs[NUM_TIMERS_PLUS_ONE - 1];
|
||||
void* timerClosures[NUM_TIMERS_PLUS_ONE - 1];
|
||||
TimerProc timerProcs[NUM_TIMERS_PLUS_ONE];
|
||||
void* timerClosures[NUM_TIMERS_PLUS_ONE];
|
||||
} CommonGlobals;
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue