Path: utzoo!mnetor!uunet!husc6!mit-eddie!mit-amt!dlleigh
From: dlleigh@mit-amt.MEDIA.MIT.EDU (Darren L. Leigh)
Newsgroups: comp.sys.amiga.tech
Subject: Help needed on Intuition and dual playfield displays
Message-ID: <2457@mit-amt.MEDIA.MIT.EDU>
Date: 8 May 88 03:48:24 GMT
Reply-To: dlleigh@media-lab.media.mit.edu.UUCP (Darren L. Leigh)
Organization: MIT Media Lab, Cambridge MA
Lines: 29

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