[comp.sys.amiga.tech] Help needed on Intuition and dual playfield displays

dlleigh@mit-amt.MEDIA.MIT.EDU (Darren L. Leigh) (05/08/88)

I am writing the software for my heart monitor project and am having
problems with the display.  I would like to use a dual playfield
display: there will be stationary statistics along the top (145 pixels
high) and a smoothly scrolling waveform along the bottom (255 pixels
high).

Intuition doesn't handle dual playfield displays so I have to make an
Intuition display and convert it.  What I'm basically doing is
attaching another RasInfo structure (with the second bitmap) to the
one that is embedded in the Inuition screen structure.  I'm also
adding a larger ColorMap structure and modifying the viewport DHeight.
Is this the right way to go about it?  The screen comes up, but the
original bitmap is full of garbage (but there and writeable) while the
second may as well not even exist (the mouse won't even go below the
bottom of the original, 145 pixel tall viewport).

What do I do about deallocating memory when the program completes?
With every procedure and its brother allocating things, what am I
messing up when I go in and modify existing ViewPort and RasInfo
structures.  My program keeps crashing the machine with guru 81000009
(deallocated something twice) on termination.  This is apparently just
from calling CloseScreen on the modified screen structure.

Help!  This is for a class and I have to have it all finished this week!  

=============================================================================
 Darren Leigh			dlleigh@media-lab.mit.edu
 362 Memorial Dr.               mit-amt!dlleigh
 Cambridge, MA 02139

papa@pollux.usc.edu (Marco Papa) (05/08/88)

In article <2457@mit-amt.MEDIA.MIT.EDU| dlleigh@media-lab.media.mit.edu.UUCP (Darren L. Leigh) writes:
|I am writing the software for my heart monitor project and am having
|problems with the display.  I would like to use a dual playfield
|display:
[stuff deleted]
|Intuition doesn't handle dual playfield displays so I have to make an
|Intuition display and convert it. 

Not true. If  done the right way, Intuition handles it just right.

[stuff deleted]
|Is this the right way to go about it?  The screen comes up, but the
|original bitmap is full of garbage (but there and writeable) while the
|second may as well not even exist (the mouse won't even go below the
|bottom of the original, 145 pixel tall viewport).
|structures.  My program keeps crashing the machine with guru 81000009
|(deallocated something twice) on termination.  This is apparently just
|from calling CloseScreen on the modified screen structure.
|
|Help!  This is for a class and I have to have it all finished this week!  

The entire source code for what you need is included with the manual of
the Enhancer Software for AmigaDos version 1.2, which might still be
available for the Amiga 1000.  It is on page 69 and it is entitled
"Dual-Playfield Screen Example" by Jim Mackraz.  Once I typed it in and posted
it but I don't have it around any more.  Could any nice folk that saved it
mail it to this student that needs it so bad?

-- Marco Papa 'Doc'
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
uucp:...!pollux!papa       BIX:papa       ARPAnet:pollux!papa@oberon.usc.edu
 "There's Alpha, Beta, Gamma and Diga!" -- Leo Schwab [quoting Rick Unland]
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=