Revision: 2635
          http://skim-app.svn.sourceforge.net/skim-app/?rev=2635&view=rev
Author:   hofman
Date:     2007-08-09 12:22:36 -0700 (Thu, 09 Aug 2007)

Log Message:
-----------
Temporarily disable flushing while selecting a snapshot area for smoother 
drawing.

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

Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m   2007-08-09 18:31:27 UTC (rev 2634)
+++ trunk/SKPDFView.m   2007-08-09 19:22:36 UTC (rev 2635)
@@ -3212,11 +3212,14 @@
        while (YES) {
                theEvent = [[self window] nextEventMatchingMask: 
NSLeftMouseUpMask | NSLeftMouseDraggedMask | NSFlagsChangedMask];
         
+        [[self window] disableFlushWindow];
         [[self window] restoreCachedImage];
-        [[self window] flushWindow];
                
-        if ([theEvent type] == NSLeftMouseUp)
+        if ([theEvent type] == NSLeftMouseUp) {
+            [[self window] enableFlushWindow];
+            [[self window] flushWindow];
             break;
+        }
         
         if ([theEvent type] == NSLeftMouseDragged) {
             // change mouseLoc
@@ -3260,6 +3263,7 @@
         [NSBezierPath strokeRect:NSInsetRect(NSIntegralRect([self 
convertRect:selRect fromView:[self documentView]]), 0.5, 0.5)];
         [NSGraphicsContext restoreGraphicsState];
         [self unlockFocus];
+        [[self window] enableFlushWindow];
         [[self window] flushWindow];
         
     }


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

Reply via email to