mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-26 00:15:52 +00:00
Merge pull request #1962 from BlairDuncan/CPTimerMinimumInterval
Fixed: CPTimer number of seconds interval set to 0.1 if less than or equal to 0.0
This commit is contained in:
commit
23d2a71649
1 file changed
+2
-2
@@ -112,7 +112,7 @@
|
||||
|
||||
if (self)
|
||||
{
|
||||
_timeInterval = seconds;
|
||||
_timeInterval = MAX(seconds,0.1);
|
||||
_invocation = anInvocation;
|
||||
_repeats = shouldRepeat;
|
||||
_isValid = YES;
|
||||
@@ -150,7 +150,7 @@
|
||||
|
||||
if (self)
|
||||
{
|
||||
_timeInterval = seconds;
|
||||
_timeInterval = MAX(seconds,0.1);
|
||||
_callback = aFunction;
|
||||
_repeats = shouldRepeat;
|
||||
_isValid = YES;
|
||||
|
||||
Reference in new issue
Block a user