Revision: 7204
http://skim-app.svn.sourceforge.net/skim-app/?rev=7204&view=rev
Author: hofman
Date: 2011-04-07 10:20:48 +0000 (Thu, 07 Apr 2011)
Log Message:
-----------
smooth graphics when anti-aliasing in snapshot and secondary PDFView
Modified Paths:
--------------
trunk/SKSecondaryPDFView.m
trunk/SKSnapshotPDFView.m
Modified: trunk/SKSecondaryPDFView.m
===================================================================
--- trunk/SKSecondaryPDFView.m 2011-04-06 10:15:29 UTC (rev 7203)
+++ trunk/SKSecondaryPDFView.m 2011-04-07 10:20:48 UTC (rev 7204)
@@ -155,6 +155,13 @@
[self annotationsChangedOnPage:page];
}
+- (void)drawPage:(PDFPage *)pdfPage {
+ // smooth graphics when anti-aliasing
+ [[NSGraphicsContext currentContext] setImageInterpolation:[[NSUserDefaults
standardUserDefaults] boolForKey:SKShouldAntiAliasKey] ?
NSImageInterpolationHigh : NSImageInterpolationDefault];
+ [super drawPage:pdfPage];
+ [[NSGraphicsContext currentContext]
setImageInterpolation:NSImageInterpolationDefault];
+}
+
#pragma mark Popup buttons
static void sizePopUpToItemAtIndex(NSPopUpButton *popUpButton, NSUInteger
anIndex) {
Modified: trunk/SKSnapshotPDFView.m
===================================================================
--- trunk/SKSnapshotPDFView.m 2011-04-06 10:15:29 UTC (rev 7203)
+++ trunk/SKSnapshotPDFView.m 2011-04-07 10:20:48 UTC (rev 7204)
@@ -61,6 +61,13 @@
#define SKScaleMenuFontSize ((CGFloat)11.0)
+- (void)drawPage:(PDFPage *)pdfPage {
+ // smooth graphics when anti-aliasing
+ [[NSGraphicsContext currentContext] setImageInterpolation:[[NSUserDefaults
standardUserDefaults] boolForKey:SKShouldAntiAliasKey] ?
NSImageInterpolationHigh : NSImageInterpolationDefault];
+ [super drawPage:pdfPage];
+ [[NSGraphicsContext currentContext]
setImageInterpolation:NSImageInterpolationDefault];
+}
+
#pragma mark Popup button
- (void)commonInitialization {
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit