Path: utzoo!attcan!uunet!lll-winken!ncis.llnl.gov!helios.ee.lbl.gov!ux1.lbl.gov!beard From: beard@ux1.lbl.gov (Patrick C Beard) Newsgroups: comp.sys.mac.programmer Subject: Re: Text Drawing at speeds greater than 1200baud Message-ID: <1728@helios.ee.lbl.gov> Date: 20 Jan 89 20:08:30 GMT References: <2243@uokmax.UUCP> <27572@ucbvax.BERKELEY.EDU> <24307@apple.Apple.COM> Sender: usenet@helios.ee.lbl.gov Reply-To: beard@ux1.lbl.gov (Patrick C Beard) Organization: Lawrence Berkeley Laboratory, Berkeley Lines: 17 In article <24307@apple.Apple.COM> parent@Apple.COM (Sean Parent) writes: >In article <27572@ucbvax.BERKELEY.EDU>, oster@dewey.soe.berkeley.edu (David Phillip Oster) writes: >> (o) if and only if the destination is a 1-bit deep pixmap, completely >> visible, the front window, and un-obscured by other windows, than do the >> following ultra-fast code. Otherwise, use the DrawText solution you've >> already been told about. > >There is no way to tell for sure that there are not any windows in front of >your window. The system owns the screen. Not true. It is very easy. Just look at the visRgn of the window in question. Clip your optimized drawing directly to the screen to this and you won't get in trouble. I know, I've done it. It is dirty pool, but it does work. Patrick Beard Berkeley Systems, Berkeley CA