diff options
author | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2010-10-01 17:03:46 +0200 |
---|---|---|
committer | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2010-10-01 17:03:46 +0200 |
commit | 04b2ad65aeda3ce01ea96180b6e414a095e23c30 (patch) | |
tree | d577de8443d1274f30c05f98b66dbb535f97470e /src/corelib/fpg_main.pas | |
parent | d9016ba784d73d9835fac6c135001f9f2aae9a9a (diff) | |
download | fpGUI-04b2ad65aeda3ce01ea96180b6e414a095e23c30.tar.xz |
fixed issue ID: 3030971 from SourceForge.
When the date/time changes to an earlier date while an fpGUI
application is running, all timers stopped firing. Under Windows
all timers are reset.
TODO:
Found out what happens under Linux and how we can detected a
date/time change.
Diffstat (limited to 'src/corelib/fpg_main.pas')
-rw-r--r-- | src/corelib/fpg_main.pas | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/corelib/fpg_main.pas b/src/corelib/fpg_main.pas index e9b0aaba..2fe5f200 100644 --- a/src/corelib/fpg_main.pas +++ b/src/corelib/fpg_main.pas @@ -387,6 +387,7 @@ function fpgGetNamedFontList: TStringlist; // Timers rountines procedure fpgInitTimers; procedure fpgCheckTimers; +procedure fpgResetAllTimers; function fpgClosestTimer(ctime: TDateTime; amaxtime: integer): integer; function fpgGetTickCount: DWord; @@ -512,6 +513,14 @@ begin end; end; +procedure fpgResetAllTimers; +var + i: integer; +begin + for i := 0 to fpgTimers.Count-1 do + TfpgTimer(fpgTimers[i]).Reset; +end; + function fpgClosestTimer(ctime: TDateTime; amaxtime: integer): integer; var i: integer; |