summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2011-01-06 17:30:49 +0200
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2011-01-06 17:30:49 +0200
commit84a9e11928a38a69ff974ed72ea59c7fa19140c9 (patch)
treebea69f28d359f8d57e05e607693f8cd16a000050 /src
parenta9f8b9430d3a0c3e694a083cab0671397b30d071 (diff)
downloadfpGUI-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.pas5
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);