CompuServe Messages

#Dual Play Bug

#: 34655 S7/ProgrammingForum unknown
    28-Sep-86 21:48:46
Sb: #34643-#Dual Play Bug
Fm: Les Popow 71310,400
To: Darrel Schneider 73267,732

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.

Darrel, I'd be glad to. I'll put together a simple example without all the extraneous junk I have in my current test progs. It will be a couple of days though so I'll leave some hints here too. This will be of course, what I have discovered. I make no allusions to this being the only or best way to do it, just the only way I have found. 1… Allocate your own BitMaps each with their own depth(1-3) to add up to the depth in the NewScreen structure. 2… Set Screen.Type to CUSTOMBITMAP as well as others settings you were using and set the CustomBitMap pointer to the first BitMap. 3… When you open the Screen, Intuition will allocate 2 RasInfo structures but you need to create their pointers. Intuition also gives you 1 RastPort structure so you need to allocate a second. 4… Get the first RasInfo pointer from the ViewPort and the address of the second RI from the first. 5… Set the pointers to link the two RI's and to point to the two BitMaps. 6… Set the second RastPort you created to point to the second BitMap. (this is the step I first forgot) 7… That RastPort has to be initiallized first 8… Do a RemakeDisplay(not entirely sure this is needed) you should now have a Screen pointing to a ViewPort that is pointing to two RasInfos that are pointing to two BitMaps. For the Drawing routines you also have two RastPorts pointing to the same BitMaps. Hope this helps. Hope I haven't forgotten anything….Les