Revision: 3080
http://skim-app.svn.sourceforge.net/skim-app/?rev=3080&view=rev
Author: hofman
Date: 2007-10-27 13:38:21 -0700 (Sat, 27 Oct 2007)
Log Message:
-----------
Fix flickering of magnify tool on Leopard.
Modified Paths:
--------------
trunk/SKPDFView.m
Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m 2007-10-27 09:38:23 UTC (rev 3079)
+++ trunk/SKPDFView.m 2007-10-27 20:38:21 UTC (rev 3080)
@@ -3531,9 +3531,9 @@
if (mouseInside == NO) {
mouseInside = YES;
[NSCursor hide];
+ // make sure we flush the complete drawing to avoid flickering
+ [[self window] disableFlushWindow];
}
- // make sure we flush the complete drawing to avoid flickering
- [[self window] disableFlushWindow];
// define rect for magnification in window coordinate
if (currentLevel > 2) {
magRect = (visibleRect);
@@ -3574,6 +3574,7 @@
[[self window] enableFlushWindow];
[[self window] flushWindowIfNeeded];
+ [[self window] disableFlushWindow];
} else { // mouse is not in the rect
// show cursor
@@ -3582,6 +3583,7 @@
[NSCursor unhide];
// restore the cached image in order to clear the rect
[[self window] restoreCachedImage];
+ [[self window] enableFlushWindow];
[[self window] flushWindowIfNeeded];
}
if ([theEvent type] == NSLeftMouseDragged)
@@ -3599,6 +3601,8 @@
[[self window] restoreCachedImage];
+ if (mouseInside)
+ [[self window] enableFlushWindow];
[[self window] flushWindowIfNeeded];
[NSCursor unhide];
[documentView setPostsBoundsChangedNotifications:postNotification];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit