Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!ut-sally!pyramid!amiga!dale From: dale@amiga.UUCP (Dale Luck) Newsgroups: net.micro.amiga Subject: Re: clearing a window Message-ID: <1583@amiga.amiga.UUCP> Date: Wed, 15-Oct-86 18:13:12 EDT Article-I.D.: amiga.1583 Posted: Wed Oct 15 18:13:12 1986 Date-Received: Thu, 16-Oct-86 18:58:08 EDT References: <1964@princeton.UUCP> Reply-To: dale@tooter.UUCP (Dale Luck) Distribution: net Organization: Commodore-Amiga Inc., 983 University Ave #D, Los Gatos CA 95030 Lines: 40 In article <1964@princeton.UUCP> chiu@princeton.UUCP (Kenneth Chiu) writes: > > > >Now, as I understand the manual, the RectFill function doesn't use any of the >fancy area fill data structures (like AreaInfo, or TmpRas), so I don't have to >worry about these. The only thing wrong with this fragment is that the >AreaPtrn is NOT guaranteed to be all 1's, am I correct? So if I save the >AreaPtrn information, do SetAfPt, then the Rectfill, and restore the AreaPtrn >information, then will this be robust? Don't forget about the writemask rp->Mask = -1; > >But do I need to save and restore any of the old information at all? In other >words, does Intuition expect that nobody will change this data. Intuition does not touch your rastport, that is yours to play with. > >Lastly, I don't quite understand the intention of the Designers with regard >to some of these functions. More specifically, is it necessary, or even >desireable to use SetAPen(rp, color) instead of rp->FgPen = color. Some >of the "functions" are implemented as macros (e.g. SetAfPt). SetAPen seems >to be a function, however, since I can't find it in any of the graphics >include files. Perhaps they want us to use these functions/macros to maintain >compatibility, but they haven't provided a complementary set of >functions/macros to extract the information. You got it, if there is a specific function to do something your should use it. You don't know what other things are done besides just poking the new pen number into the rastport. In the case of SetAPen(rp,c) a new set of Minterms is generated for that RastPort. Most drawing functions use the Minterms >What I really want to do is to refresh a window's gadgets. RefreshGadgets >redraws them, and RemoveGadget takes them out of the list, but no function >seems to >erase< the ones that are no longer. jimm really needs to handle some of these problems, he may have better answers as to what you 'should' do. Check out the 1.2 docs, maybe you'll find some goodie there. Dale Luck