diff options
author | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2011-01-06 17:30:49 +0200 |
---|---|---|
committer | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2011-01-06 17:30:49 +0200 |
commit | 84a9e11928a38a69ff974ed72ea59c7fa19140c9 (patch) | |
tree | bea69f28d359f8d57e05e607693f8cd16a000050 /src | |
parent | a9f8b9430d3a0c3e694a083cab0671397b30d071 (diff) | |
download | fpGUI-84a9e11928a38a69ff974ed72ea59c7fa19140c9.tar.xz |
fpgCheckTimers is now a function.
A boolean return value of True means that there are active timers.
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/fpg_main.pas | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/corelib/fpg_main.pas b/src/corelib/fpg_main.pas index 8532f959..a8df0e16 100644 --- a/src/corelib/fpg_main.pas +++ b/src/corelib/fpg_main.pas @@ -395,7 +395,7 @@ function fpgGetNamedFontList: TStringlist; // Timers rountines procedure fpgInitTimers; -procedure fpgCheckTimers; +function fpgCheckTimers: Boolean; procedure fpgResetAllTimers; function fpgClosestTimer(ctime: TDateTime; amaxtime: integer): integer; function fpgGetTickCount: DWord; @@ -541,13 +541,14 @@ begin fpgTimers := TList.Create; end; -procedure fpgCheckTimers; +function fpgCheckTimers: Boolean; var i: integer; ctime: TDateTime; begin ctime := now; i := fpgTimers.Count; + Result := i > 0; while i > 0 do begin dec(i); |