bug-gnustep
[Top][All Lists]
Advanced

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

Re: Fix: NSView, view clipping


From: Fred Kiefer
Subject: Re: Fix: NSView, view clipping
Date: Sat, 01 Sep 2001 15:49:42 +0200

Hi Georg,

I am having the same drawing problems, where sometimes parts of a window
is missing (e.g. in the Box test of GSTest). So any solution to this
would be fine. I had a look at your clipping code and did not quite
understand it. Your code seems to add another stack to the graphics
context, while we already use a stack for the gstates, which should be
handling the clipping as well. I don't think that we should introduce a
new PS call for this functionality, it should already be possible to
implement this by correcting our current code. 

First of all [NSView lockFocusInRect:] looks wrong. It only uses the
given rect to set the clipping when there is no gstate for the current
view. This are, as far as I see it, two independent operations, the
gstate of the view must have its clipping set to the extend of the view
and for each new lock focus we must restrict the clipping to the current
rectangle. Perhaps solving this would make your problem disappear. If
not the problem is with the gstate itself and we should have a closer
look on this.

Fred





reply via email to

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