CompuServe Messages

#Paint Bug?

#: 85766 S10/ProgrammingForum unknown
    21-Sep-87 11:45:44
Sb: #85238-#Paint Bug?
Fm: Dale Rice 70611,1103
To: Ed Silva 70507,134

This message turned up in search, but its forum couldn’t be identified from the original transcript, so it may not be linked into its thread.

Ah! Your suggestion was very useful. I found that the following sequence will "fill without spill" from some mouse location (mx,my) to a border of any color: RP&=WINDOW(8) RP& is pointer to rast port mx=MOUSE(1):my=MOUSE(2) mouse location CALL SetAPen&(RP&,currcolor) currcolor has been set previously AREA(mx,my) is AREA command necessary so that proper pointer to BitMap structure is created? CALL FLOOD&(RP&,1,mx,my) voila! Note that FLOOD works only in mode=1 (the "color mode"). In mode=0, as you suggested, color still spills out of borders. Thus I hypothesize that there is a bug in the ROM Kernal FLOOD routine. Perhaps this routine is called by the AmigaBASIC PAINT command, thus the bug surfaces there as well.