> 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];
     }

   /*

_______________________________________________
Bug-gnustep mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to