bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fix: Printing


From: Georg Fleischmann
Subject: Re: Fix: Printing
Date: Fri, 5 Oct 2001 02:00:24 +0100

> I added this patch although I completely rewrote the NSView changes.
> There's more that needs to be done when printing that just reseting the
> coordinates so I tried to account for that. It seemed to work for me but
> perhaps you can test it again.

I finally tested the changes:
The changes for NSView are not working for subviews. The reason is that in  
[NSView displayRectIgnoringOpacity:] unlockFocus is called before the subviews  
are drawn, thus recalculating _matrixToWindow.
The attached patch unlocks the focus after drawing the subviews of the view.

Georg


--- gui/Source/NSView.m.orig    Wed Sep 26 05:47:20 2001
+++ gui/Source/NSView.m Fri Oct  5 02:46:15 2001
@@ -1728,7 +1728,6 @@
        */
       [self lockFocusInRect: aRect];
       [self drawRect: aRect];
-      [self unlockFocusNeedsFlush: YES];
     }

   if (_rFlags.has_subviews == YES)
@@ -1786,6 +1785,11 @@
                }
            }
        }
+    }
+
+  if (NSIsEmptyRect(aRect) == NO)
+    {
+      [self unlockFocusNeedsFlush: YES];
     }

   /*



reply via email to

[Prev in Thread] Current Thread [Next in Thread]