Article View: comp.os.msdos.programmer
Article #403floodfill problem.
From: Steven Cavanagh
Date: Tue, 21 Jul 1992 05:38
Date: Tue, 21 Jul 1992 05:38
18 lines
1067 bytes
1067 bytes
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.
Technical Details
Message-ID:
<1434@grivel.une.edu.au>Path:
arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!metro!grivel!neumann.une.edu.au!scavanagShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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