Created
September 9, 2010 05:10
-
-
Save lilyball/571408 to your computer and use it in GitHub Desktop.
Patch for Simple Comic
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Session/TSSTPageView.m b/Session/TSSTPageView.m | |
index b4a5f55..3c994f9 100644 | |
--- a/Session/TSSTPageView.m | |
+++ b/Session/TSSTPageView.m | |
@@ -136,7 +136,7 @@ | |
firstPageImage, @"pageImage", | |
[testImageRep valueForProperty: NSImageLoopCount], @"loopCount",nil]; | |
frameDuration = [[testImageRep valueForProperty: NSImageCurrentFrameDuration] floatValue]; | |
- frameDuration = frameDuration > 0.01 ? frameDuration : 0.01; | |
+ frameDuration = frameDuration >= 0.01 ? frameDuration : 0.1; | |
[NSTimer scheduledTimerWithTimeInterval: frameDuration | |
target: self | |
selector: @selector(animateImage:) | |
@@ -174,7 +174,7 @@ | |
if(loopCount != 1) | |
{ | |
frameDuration = [[testImageRep valueForProperty: NSImageCurrentFrameDuration] floatValue]; | |
- frameDuration = frameDuration > 0.01 ? frameDuration : 0.01; | |
+ frameDuration = frameDuration >= 0.01 ? frameDuration : 0.1; | |
[NSTimer scheduledTimerWithTimeInterval: frameDuration | |
target: self selector: @selector(animateImage:) | |
userInfo: animationInfo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment