Revision: 5770
          http://skim-app.svn.sourceforge.net/skim-app/?rev=5770&view=rev
Author:   hofman
Date:     2009-09-20 16:17:31 +0000 (Sun, 20 Sep 2009)

Log Message:
-----------
set background of pdfview to black when animating from presentation mode 
because 10.5 does not properly afade transparent pdfviews

Modified Paths:
--------------
    trunk/SKMainWindowController.m

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2009-09-19 23:29:17 UTC (rev 5769)
+++ trunk/SKMainWindowController.m      2009-09-20 16:17:31 UTC (rev 5770)
@@ -1591,6 +1591,9 @@
     NSDate *limitDate = [NSDate dateWithTimeIntervalSinceNow:3.5];
     CAAnimation *animation = [CATransition animation];
     
+    // 10.5 has problems animating with a transparent background
+    if ([self isPresention])
+        [pdfView setBackgroundColor:[NSColor blackColor]];
     [animation setTimingFunction:[CAMediaTimingFunction 
functionWithName:kCAMediaTimingFunctionEaseIn]];
     [animation setDuration:0.5];
     [animation setDelegate:self];


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to