Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!lll-crg!lll-lcc!well!perry From: perry@well.UUCP (Perry S. Kivolowitz) Newsgroups: net.micro.amiga Subject: Re: Flood fills. Message-ID: <1875@well.UUCP> Date: Thu, 2-Oct-86 12:34:23 EDT Article-I.D.: well.1875 Posted: Thu Oct 2 12:34:23 1986 Date-Received: Sat, 4-Oct-86 06:39:49 EDT References: <535@zinfandel.UUCP> Distribution: net Organization: Whole Earth Lectronic Link, Sausalito, CA Lines: 16 Summary: flood fill needs tmpras In article <535@zinfandel.UUCP>, donw@zinfandel.UUCP (Don White) writes: > > Help? > > 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 Ahhhh. This one again? Did you allocate a TmpRas structure before calling Flood? This one bit me on the ass about a year ago. Since then, I've heard of three other people who made the same mistake I did and after their enlightenment, no problem! Perry S. Kivolowitz