[comp.sys.mac.programmer] moving windows across screens/depths

smargari@nmsu.edu (Susan Margarit) (06/24/91)

When my 2 page mono is the main screen (ie. has the menu bar ), I
create a color window and move it to the 8 bit screen before showing
it. I always want the program window to come up on the deepest screen.
I then create several 8 bit offscreen ports and draw into them. They
copybits to the onscreen window in color but anything that is drawn
into the screen draws in two colors (white and a green that is
somewhere in the midst of the palette but not in the first two).
Looking at the structures with lightsbug shows that the pixel size in
the pixmap is still one even though it is on a 8 bit screen with 8 bit
images showing. What gives? What is the proper way of creating a color
window from a resource in a graphics device that is not the main
graphics device? Note that when the 8 bit screen is the main screen,
everything works perfectly. It only messes up when the mono screen is
the main GDevice.

Jim (aka Susan, but not a boy named Sue, like, its my wife's account
already, alright?) Margarit.