[comp.sys.amiga.tech] MakeBob improvement

rap@peck.ardent.com (Rob Peck) (08/21/89)

Last week I posted a proposed improvement to MakeBob, adding a parameter called
'screendepth'.  In subsequent testing, I discovered that this is NOT the
only change that is necessary.  That is, if the single suggested change
is made, when an item is deleted, not all of the memory is returned
to the system at exit.  The original routines were clean, and returned
all memory.  I believe that the correct approach is likely to be to add to
more than just one routine a pointer to the rastport into which the object
is drawn so that the routine can get to the BitMap pointer and determine
the depth on its own.  Stay tuned to most of this same station for more
info as I (or someone else) figure out just what's the right thing to do.
(This was prompted by my using a fairly large single plane Bob, and noticing
that I had to follow its bit definition by a set of zeros 4 times as long
as the bit pattern, just to make sure that InitMasks would work correctly.
This was for a one plane Bob to be rendered into a 5 plane background.)


Rob Peck