home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / msdos / programm / 7990 < prev    next >
Encoding:
Text File  |  1992-07-21  |  1.4 KB  |  35 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!nevada.edu!otto
  3. From: otto@nevada.edu (Frederick J. Haab)
  4. Subject: Re: floodfill problem.
  5. Message-ID: <1992Jul21.182732.9676@nevada.edu>
  6. Sender: news@nevada.edu (USENET News System)
  7. Nntp-Posting-Host: helios.nevada.edu
  8. Organization: University of Nevada System Computing Services
  9. References: <1434@grivel.une.edu.au>
  10. Date: Tue, 21 Jul 1992 18:27:32 GMT
  11. Lines: 22
  12.  
  13. In article <1434@grivel.une.edu.au> scavanag@neumann.une.edu.au (Steven Cavanagh) writes:
  14. >    I'm writing a simple game using Borland C++ 3.0, and
  15. >without going into too much detail, I need a section of the viewing
  16. >screen that is already filled coloured black (ie, only part of the
  17. >filled section is to be coloured black, effectively erasing it).
  18. >I setcolor(EGA_BLACK); draw the boundaries of the area using lineto,
  19. >and then floodfill(x,y,EGA_BLACK) inside this region. When the 
  20. >program runs the lines are drawn okay, but the region is not filled
  21. >in. I have checked the use of floodfill() and the coordinates, but
  22. >cannot figure out why it isn't doing it.
  23. >
  24. >Can anyone help?
  25. >
  26. >    Cav.
  27.  
  28. I don't have Borland C++, I have Turbo C++, if they are similar then
  29. you may have a function called fillpoly(...).  I don't know why
  30. floodfill doesn't work, but even in my manual it suggests using
  31. fillpoly whenever possible, and also floodfill doesn't work
  32. on 8514 drivers.
  33.  
  34.     -Fred
  35.