home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!munnari.oz.au!metro!grivel!neumann.une.edu.au!scavanag
- From: scavanag@neumann.une.edu.au (Steven Cavanagh)
- Newsgroups: comp.os.msdos.programmer
- Subject: floodfill problem.
- Message-ID: <1434@grivel.une.edu.au>
- Date: 21 Jul 92 05:38:47 GMT
- Sender: usenet@grivel.une.edu.au
- Lines: 18
-
-
- I'm not sure if this belongs here or in rec.games.programmer (if I
- post something like this in one, SOMEBODY tells me to take it to the
- other), but:
-
- I'm writing a simple game using Borland C++ 3.0, and
- without going into too much detail, I need a section of the viewing
- screen that is already filled coloured black (ie, only part of the
- filled section is to be coloured black, effectively erasing it).
- I setcolor(EGA_BLACK); draw the boundaries of the area using lineto,
- and then floodfill(x,y,EGA_BLACK) inside this region. When the
- program runs the lines are drawn okay, but the region is not filled
- in. I have checked the use of floodfill() and the coordinates, but
- cannot figure out why it isn't doing it.
-
- Can anyone help?
-
- Cav.
-