Hi,

here is a patch for NSView to renew the gstate after setting a new origin.
I hope it is useful ...

Georg


2001-04-09  Georg Fleischmann

        * gui/Source/NSView.m
        [NSView setBoundsOrigin:]: renew gstate


diff -u gui/Source/NSView.m.old gui/Source/NSView.m


--- gui/Source/NSView.m.old     Mon Apr  9 22:37:28 2001
+++ gui/Source/NSView.m Mon Apr  9 22:38:38 2001
@@ -851,6 +851,11 @@
     }
   [_boundsMatrix setFrameOrigin: NSMakePoint(-newOrigin.x, -newOrigin.y)];

+  /* renew gstate */
+  if (_allocate_gstate && _gstate)
+    PSundefineuserobject(_gstate);
+  _gstate = 0;
+
   if (_post_bounds_changes)
     {
       [nc postNotificationName: NSViewBoundsDidChangeNotification

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

Reply via email to