[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fix: NSView, view clipping
From: |
Adam Fedor |
Subject: |
Re: Fix: NSView, view clipping |
Date: |
Wed, 05 Sep 2001 15:58:41 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:0.9.2) Gecko/20010630 |
Well now I'm reconsidering the change to use save/restore in NSView's
lockFocus. The problem with this is that user objects (such as gstates)
are stored in local VM, and a restore invalidates anything in local VM.
This in fact screws up the xdps backend (not the xgps backend because
xgps is only a weak attempt at implementing DPS).
I could store gstates in some global dictionary, but that would be a
pain to implement.
The only other alternative is to go back to gsave/grestore. Then of
course we couldn't use rectviewclip (since grestore doesn't restore
those) and instead use rectclip. The drawback to this is that a custom
view could potentially (i.e. on purpose) mess with the clip path and
draw all over the window. But I suppose that's the application
developer's problem...
If anyone has any opinions, let me know.
On second though, I suppose a custom view could call rectviewclip and
screw with the window also, so perhaps it doesn't matter anyway...
--
Adam Fedor, Digital Optics | Fudd's law of opposition: Push
fedor@doc.com http://www.doc.com | something hard enough, and it
fedor@gnu.org http://www.gnustep.org | will fall over.