Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rochester!cornell!uw-beaver!mit-eddie!ll-xn!ames!ucbcad!ucbvax!COGSCI.BERKELEY.EDU!bryce From: bryce@COGSCI.BERKELEY.EDU Newsgroups: comp.sys.amiga Subject: Re: Re: Clipping within a window. Message-ID: <8706271148.AA02655@cogsci.berkeley.edu> Date: Sat, 27-Jun-87 07:48:29 EDT Article-I.D.: cogsci.8706271148.AA02655 Posted: Sat Jun 27 07:48:29 1987 Date-Received: Sun, 28-Jun-87 01:17:53 EDT Sender: daemon@ucbvax.BERKELEY.EDU Lines: 35 Summary: A layer is not needed for this application. In article <186@dana.UUCP> rap@dana.UUCP (Rob Peck) writes: >In article <205@sugar.UUCP>, peter@sugar.UUCP (Peter DaSilva) writes: >> I want to clip some text (or graphic) output to within the borders of a >> simplerefresh window. What's the best way to do this? I know I can use >> superbitmap with GZZ, but that's rather overkill for text only output. >> That is, I guess, how do I set up a clipping rectangle of my own within a >> window? >> >Use the layers.library routine to create a layer in your current window. >There is an example in the ROM Kernel manual that draws the words >"Behind a fence" literally behind a fence. (I wrote that example). -(Nice example, BTW)- --------- In this case I believe that peter wants to do a SIMPLE_REFRESH console device replacement. (for CLI windows and such) --------- *IF* this is what's going on, that would be a poor way to do things: Since console devices are required to count the size of the window in characters, and don't work (well) with proportional characters, the clipping rectangle would be mostly extra baggage. A "console device" would want to clip to the nearest whole character, and in most cases wrap it to the next line. (unless, of course, ?7l is in effect. ?7h turns wrap on again. can also be expressed with [ ) Simply count characters (you'll need to anyway) and don't trash your borders. Possibly use the "WarpText" routines that someone recently presented to comp.sources.amiga to crank your update rates up. (I have not tried WarpText, and know next-to-nothing about the operation of layers or damage lists, so don't take my word for it)