Path: utzoo!mnetor!uunet!husc6!rutgers!gatech!ncar!ames!oliveb!amiga!boing!dale From: dale@boing.UUCP (Dale Luck) Newsgroups: comp.sys.amiga Subject: Re: Graphics and Intuition Questions Message-ID: <289@boing.UUCP> Date: 10 Apr 88 15:59:57 GMT References: <480@lamont.Columbia.edu> <639@imagine.PAWL.RPI.EDU> Reply-To: dale@boing.UUCP (Dale Luck) Organization: Boing, Milpitas, Ca. Lines: 20 In article <639@imagine.PAWL.RPI.EDU> (Randell E. Jesup) writes: >In article <480@lamont.Columbia.edu> (adam levin) writes: >>2. After using SetAfPt() and SetDrMd() to do subsequent fills with a bi- >> color pattern, I want to go back to using a solid color. Must I use >> SetAfPt (with a pattern of say, {0xffff, 0xffff}), or is there a more >> proper way of resetting it? > > I'd say set the fields in the Rastport to NULL,their default state. > Do both the pointer and size, just in case, though I suspect just > the pointer would do. You are right. To get back to solid fill you only need to set the pattern ptr to NULL. This is more efficient then using a pattern of all F's. The graphicss library ignores the size unless the the ptr != NULL so it does not matter what the size is when going to a solid fill as a matter of fact a size of '0' is legal and indicates an areafill pattern of height 1. Dale Luck