add an extra slot as on other platforms

This commit is contained in:
ehouse 2005-09-09 03:06:27 +00:00
parent ad7b25eb52
commit ecce7f9d2e
2 changed files with 6 additions and 6 deletions

View file

@ -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 */

View file

@ -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