Revision: 7540
http://skim-app.svn.sourceforge.net/skim-app/?rev=7540&view=rev
Author: hofman
Date: 2011-11-16 18:21:15 +0000 (Wed, 16 Nov 2011)
Log Message:
-----------
Use no image interpolation when not anti-aliasing
Modified Paths:
--------------
trunk/SKPDFView.m
trunk/SKSecondaryPDFView.m
trunk/SKSnapshotPDFView.m
Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m 2011-11-15 12:49:19 UTC (rev 7539)
+++ trunk/SKPDFView.m 2011-11-16 18:21:15 UTC (rev 7540)
@@ -343,8 +343,8 @@
NSImageInterpolation interpolation = [[NSUserDefaults
standardUserDefaults] integerForKey:SKImageInterpolationKey];
// smooth graphics when anti-aliasing
- if (interpolation == NSImageInterpolationDefault && [[NSUserDefaults
standardUserDefaults] boolForKey:SKShouldAntiAliasKey])
- interpolation = NSImageInterpolationHigh;
+ if (interpolation == NSImageInterpolationDefault)
+ interpolation = [self shouldAntiAlias] ? NSImageInterpolationHigh :
NSImageInterpolationNone;
[[NSGraphicsContext currentContext] setImageInterpolation:interpolation];
[PDFAnnotation setCurrentActiveAnnotation:activeAnnotation];
Modified: trunk/SKSecondaryPDFView.m
===================================================================
--- trunk/SKSecondaryPDFView.m 2011-11-15 12:49:19 UTC (rev 7539)
+++ trunk/SKSecondaryPDFView.m 2011-11-16 18:21:15 UTC (rev 7540)
@@ -130,8 +130,8 @@
- (void)drawPage:(PDFPage *)pdfPage {
NSImageInterpolation interpolation = [[NSUserDefaults
standardUserDefaults] integerForKey:SKImageInterpolationKey];
// smooth graphics when anti-aliasing
- if (interpolation == NSImageInterpolationDefault && [[NSUserDefaults
standardUserDefaults] boolForKey:SKShouldAntiAliasKey])
- interpolation = NSImageInterpolationHigh;
+ if (interpolation == NSImageInterpolationDefault)
+ interpolation = [self shouldAntiAlias] ? NSImageInterpolationHigh :
NSImageInterpolationNone;
[[NSGraphicsContext currentContext] setImageInterpolation:interpolation];
[super drawPage:pdfPage];
[[NSGraphicsContext currentContext]
setImageInterpolation:NSImageInterpolationDefault];
Modified: trunk/SKSnapshotPDFView.m
===================================================================
--- trunk/SKSnapshotPDFView.m 2011-11-15 12:49:19 UTC (rev 7539)
+++ trunk/SKSnapshotPDFView.m 2011-11-16 18:21:15 UTC (rev 7540)
@@ -64,8 +64,8 @@
- (void)drawPage:(PDFPage *)pdfPage {
NSImageInterpolation interpolation = [[NSUserDefaults
standardUserDefaults] integerForKey:SKImageInterpolationKey];
// smooth graphics when anti-aliasing
- if (interpolation == NSImageInterpolationDefault && [[NSUserDefaults
standardUserDefaults] boolForKey:SKShouldAntiAliasKey])
- interpolation = NSImageInterpolationHigh;
+ if (interpolation == NSImageInterpolationDefault)
+ interpolation = [self shouldAntiAlias] ? NSImageInterpolationHigh :
NSImageInterpolationNone;
[[NSGraphicsContext currentContext] setImageInterpolation:interpolation];
[super drawPage:pdfPage];
[[NSGraphicsContext currentContext]
setImageInterpolation:NSImageInterpolationDefault];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit