Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!columbia!rutgers!sri-spam!nike!ucbcad!ucbvax!CORY.BERKELEY.EDU!dillon From: dillon@CORY.BERKELEY.EDU (Matt Dillon) Newsgroups: net.micro.amiga Subject: Re: Flood fills. Message-ID: <8610021550.AA18495@cory.Berkeley.EDU> Date: Thu, 2-Oct-86 11:50:29 EDT Article-I.D.: cory.8610021550.AA18495 Posted: Thu Oct 2 11:50:29 1986 Date-Received: Sat, 4-Oct-86 06:38:34 EDT Sender: daemon@ucbvax.BERKELEY.EDU Organization: University of California at Berkeley Lines: 30 > I am writing a program in which I need to fill irregular shapes. I have >a pointer to a rastport from a window which I am successfully using for >'WritePixel(Window->RPort,x,y);' in the same function but when I try to use >'Flood(Window->RPort,mode,x,y);' nothing happens. Mode, x, and y are all >integers. mode is set to one and x, and y are inside a shape. I know they are >correct. If I have called the library with WritePixel well enough to use it >isn't this also supposed to give me access to Flood? > I'm not getting any errors or warning when I compile (lattice 3.03) >the program or link it. On execution the program just goes past it like it >was a comment. (It definitely is not inside comments. The next line down is >being used so accidental commenting is not a possible explanation) I dunno, you could try: (A) SetAPen(Rp, pen) (maybe your flooding the same color as the background?) (B) Setup an AreaInfo for your rastport I'm not sure whether you need the AreaInfo structure or not for Flood Fills, but it's the only thing I can think of that could possibly be wrong. You probably have already discounted (A). Also, if you are using Manx and not Lattice, make sure the variables in the calling arguments are the right type (short/long, whichever the manual says). -Matt