Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!julius.cs.uiuc.edu!ux1.cso.uiuc.edu!cs.uiuc.edu!schwager From: schwager@cs.uiuc.edu (Michael Schwager) Newsgroups: comp.sys.amiga.programmer Subject: tryin' to create a Flood ().... Summary: maybe I shoulda been a street musician Keywords: is it just my brain, or am I dead? Message-ID: <1991Jan23.034804.6498@cs.uiuc.edu> Date: 23 Jan 91 03:48:04 GMT References: <1991Jan23.031010.11248@cs.uiuc.edu> Organization: University of Illinois, Dept. of Comp. Sci., Urbana, IL Lines: 33 Ok, so now I'm tryin' to do a Flood fill of an area, and that's not working right. Dig this: I've got a BackDrop window that I've put a lovely IFF picture into. There's a large area of white (pen 1) surrounding x=470, y=79. I'm trying to turn that area black (pen 4). Around the white is background (pen 0). I have a struct Window *ThisWindow; So I can do this: SetOPen (ThisWindow->RPort, 0L); SetAPen (ThisWindow->RPort, 4L); Flood (ThisWindow->RPort, 0L, 470L, 79L); However, if I try to do a mode 1 flood, nothing happens! That is, it doesn't matter what I do with SetOPen, but when I try: Flood (ThisWindow->RPort, 1L, 470L, 79L); forget it! It stays whiter than white, brighter than bright. It's enough to ruin my day. So, wisened peoples, what's wrong with my brain this time? Do I need to set aside a TmpRas? Do I need to change something else in my RastPort? Am I even using the correct RastPort? Like, ought I go to the Screen's RastPort (aren't they the same?)? I feel like I'm fishing in the dark a little here... Thanks! -Mike Schwager |"Weapons are the tools of fear; INTERNET:schwager@cs.uiuc.edu | a decent man will avoid them... UUCP:{uunet|convex|pur-ee}!uiucdcs!schwager| His enemies are not demons, BITNET:schwager@mike.cs.uiuc.edu | but human beings like himself...." University of Illinois, Dept. of Comp. Sci.| -Tao Te Ching, chapter 31