Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!mips!spool.mu.edu!munnari.oz.au!yoyo.aarnet.edu.au!sirius.ucs.adelaide.edu.au!jpotter From: jpotter@ucs.adelaide.edu.au (Jonathan Potter) Newsgroups: comp.sys.amiga.programmer Subject: Re: I can't get Flood() to work! Message-ID: <3238@sirius.ucs.adelaide.edu.au> Date: 11 May 91 02:23:51 GMT References: <15629@darkstar.ucsc.edu> Organization: Information Technology Division, The University of Adelaide, AUSTRALIA Lines: 19 In article <15629@darkstar.ucsc.edu> davids@ucscf.UCSC.EDU (Dave Schreiber) writes: >I'm having a problem figuring out how the Flood() function works. I've >been able to get flood mode #0 (flood to the outline color) to work, but >it's incredibly slow (even on my 3000), and not really what I want anyway. >Mode #1 (flood the block of color at the given coordinates), on the other >hand, looks like it will fit the bill, but I haven't been able to get it to >work. Here's a code sample that illustrates what I'm trying to do You need to allocate a TmpRas, and set the TmpRas pointer of the rastport to that. The TmpRas (presumably short for temporary rastport) is the same height and width as your window's rastport, but only one bit-plane deep. Check the RKM for more info, as I can't remember exactly how its done of the top of my head. Jon -- | Jonathan Potter | | I'd really like to | | P.O. Box 289 | jpotter@itd.adelaide.edu.au | change the world... | | Goodwood, SA | FidoNet : 3:680/829 | But they won't give me | | Australia 5034 | | the source code. |