[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: info-mcl
- Subject: Re: clipping
- From: firstname.lastname@example.org (Mark Johnson)
- Date: 23 Sep 92 13:42:54 GMT
- Newsgroups: comp.lang.lisp.mcl
- Organization: Brown University Department of Computer Science
- References: <DKOZAK.92Sep22121752@db.cray.com>
- Sender: email@example.com
> I can't get clipping regions to work.
> For instance, if I do the following...
> (let ((bob (make-instance 'window)))
> (frame-rect bob 20 20 50 50)
> ...I would expect both the line and the string to get clipped, but
> they don't.
(Ignoring the fact that bob is unbound in the second let defn...)
The problem is that the MCL Quickdraw.lisp fn defs all include
with-focused-view, which sets the clipregion. If you want to
manipulate the clipregion yourself (either for clipping a display,
or else for saving a PICTure larger than the current view), you
have to call the Quickdraw traps directly, rather than use the
MCL Quickdraw interface. This also means that you can't rely on
MCL's "view" mechanism.
This "feature" came into MCL at around version 1.3, I think.
It singlehandedly broke quite a bit of my code.
Cognitive Science, Box 1978
- From: firstname.lastname@example.org (Darryn Kozak)