Article View: comp.os.msdos.programmer
Article #411Re: floodfill problem.
From: Frederick J. Haab
Date: Tue, 21 Jul 1992 18:27
Date: Tue, 21 Jul 1992 18:27
22 lines
1428 bytes
1428 bytes
In article <1434@grivel.une.edu.au> scavanag@neumann.une.edu.au (Steven Cavanagh) writes: > 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. I don't have Borland C++, I have Turbo C++, if they are similar then you may have a function called fillpoly(...). I don't know why floodfill doesn't work, but even in my manual it suggests using fillpoly whenever possible, and also floodfill doesn't work on 8514 drivers. -Fred
Technical Details
Message-ID:
<1992Jul21.182732.9676@nevada.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!nevada.edu!ottoReferences:
<1434@grivel.une.edu.au>Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!nevada.edu!otto From: otto@nevada.edu (Frederick J. Haab) Subject: Re: floodfill problem. Message-ID: <1992Jul21.182732.9676@nevada.edu> Sender: news@nevada.edu (USENET News System) Nntp-Posting-Host: helios.nevada.edu Organization: University of Nevada System Computing Services References: <1434@grivel.une.edu.au> Date: Tue, 21 Jul 1992 18:27:32 GMT Lines: 22