Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

setNeedsDisplay if blend mode changes

  • Loading branch information...
commit 0a3622d998837cfe3522cca3a9b7d63549f62d84 1 parent ac1c7b9
@kgn authored
Showing with 11 additions and 0 deletions.
  1. +11 −0 KGNoise.m
View
11 KGNoise.m
@@ -111,6 +111,17 @@ - (void)setNoiseOpacity:(CGFloat)noiseOpacity{
}
}
+- (void)setNoiseBlendMode:(CGBlendMode)noiseBlendMode{
+ if(_noiseBlendMode != noiseBlendMode){
+ _noiseBlendMode = noiseBlendMode;
+#if TARGET_OS_IPHONE
+ [self setNeedsDisplay];
+#else
+ [self setNeedsDisplay:YES];
+#endif
+ }
+}
+
#if TARGET_OS_IPHONE
- (void)drawRect:(CGRect)dirtyRect{
CGContextRef context = UIGraphicsGetCurrentContext();
Please sign in to comment.
Something went wrong with that request. Please try again.