File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -607,7 +607,11 @@ - (void)drawRect:(NSRect)rect
607607 cgLayerSize.width ,
608608 cgLayerSize.height );
609609
610- CGContextDrawLayerInRect ([context graphicsPort ], drawRect, l);
610+ CGContextRef cgContext = [context graphicsPort ];
611+ CGContextSaveGState (cgContext);
612+ CGContextSetBlendMode (cgContext, kCGBlendModeCopy );
613+ CGContextDrawLayerInRect (cgContext, drawRect, l);
614+ CGContextRestoreGState (cgContext);
611615 }
612616}
613617
@@ -1487,6 +1491,7 @@ - (void)scrollRect:(NSRect)rect lineCount:(int)count
14871491 // draw self on top of self, offset so as to "scroll" lines vertically
14881492 CGContextSaveGState (context);
14891493 CGContextClipToRect (context, clipRect);
1494+ CGContextSetBlendMode (context, kCGBlendModeCopy );
14901495 CGContextDrawLayerAtPoint (
14911496 context, CGPointMake (0 , -yOffset), [self getCGLayer ]);
14921497 CGContextRestoreGState (context);
You can’t perform that action at this time.
0 commit comments