nanogui: microwindows stops events for the duration of system clock setting back


Previous by date: 5 Aug 2004 07:36:53 +0100 0.91 soon?, Mark Mussetter
Next by date: 5 Aug 2004 07:36:53 +0100 12bpp, Takács Áron
Previous in thread: 5 Aug 2004 07:36:53 +0100 Re: [nanogui] microwindows stops events for the duration of system clock setting back, GerdMitländer
Next in thread:

Subject: Re: [nanogui] microwindows stops events for the duration of system clock setting back
From: "Kinz Elektronik" ####@####.####
Date: 5 Aug 2004 07:36:53 +0100
Message-Id: <000201c47ab7$79deb9a0$0901a8c0@Pentium9>

Hi...

thanks for the answer. I have looked to your solution an have seen that
the function SetTimer does the same (and i don't have to chage the
source).
I tried to set the timer after setting the system time with no change
(just hanging).

Did I make a mistake?
Is there anything else to fix?

Thanks allot
Robert

> -----Ursprüngliche Nachricht-----
> Von: Gerd Mitländer ####@####.#### 
> Gesendet: Dienstag, 03. August 2004 12:39
> An: ####@####.####
> Betreff: Re: [nanogui] microwindows stops events for the 
> duration of system clock setting back
> 
> 
> Hi...
> 
> i solved it that way:
> 
> I've included the following function in winuser.c:
> 
> BOOL WINAPI RestartTimers(void)
> {
> 	int index;
> 	DWORD ticks = GetTickCount();
> 	
> 	for (index = 0; index < MAX_TIMER_COUNT; index++)
> 	{
> 		if(timer[index].uTimeout)
> 		{
> 			timer[index].dwClockExpires = ticks + 
> timer[index].uTimeout;
> 		}
> 	}
>   
>   return TRUE;
> }
> 
> But i've already "hacked" the timers to be able to run 5 (= 
> MAX_TIMER_COUNT) 
> of them. I think you must only do a:
> 
> if(timer.uTimeout)
> {
> 	timer.dwClockExpires = ticks + timer.uTimeout;
> }
> 
> to restart your timer in RestartTimers. Call the function 
> after you've set the 
> system time.
> 
> Regards,
> 
> Gerd
> 
> PS: The timer is restarted so you may get one event less if 
> the timer was 
> shortly before timing out.
> 
> Am Dienstag, 3. August 2004 11:44 schrieb Kinz Elektronik:
> > Hi,
> >
> > I have the problem when the system clock is set back that 
> microwindows 
> > stops to send the timer and many drawings aren't updated for the 
> > duration the system clock is set back.
> > This problem can be tested with the demos (mdemo).
> > Is there any workaround to solve this problem (function to reset the
> > timers, ...)?
> > I am using the microwindows version 0.89 is this solved in 
> the current
> > version?
> >
> > Regards, Robert
> >
> >
> >
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: ####@####.####
> > For additional commands, e-mail: ####@####.####
> 
> -- 
> Mit freundlichem Gruß,
> 
> Gerd Mitländer
> 
> Dipl.-Ing. (FH) Daten- und Informationstechnik
> 
> daum forschung und entwicklung gmbh
> Flugplatzstr. 100
> D-90768 Fürth
> 
> Tel. +49-(0)911-97536-26
> Fax. +49-(0)911-97536-96
> Mail ####@####.####
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ####@####.####
> For additional commands, e-mail: ####@####.####
> 
> 



Previous by date: 5 Aug 2004 07:36:53 +0100 0.91 soon?, Mark Mussetter
Next by date: 5 Aug 2004 07:36:53 +0100 12bpp, Takács Áron
Previous in thread: 5 Aug 2004 07:36:53 +0100 Re: [nanogui] microwindows stops events for the duration of system clock setting back, GerdMitländer
Next in thread:


Powered by ezmlm-browse 0.20.