Skip to content

Instantly share code, notes, and snippets.

@lilyball
Created September 9, 2010 05:10
Show Gist options
  • Save lilyball/571408 to your computer and use it in GitHub Desktop.
Save lilyball/571408 to your computer and use it in GitHub Desktop.
Patch for Simple Comic
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