Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!know!news.cs.indiana.edu!ariel.unm.edu!nmsu!opus!smargari From: smargari@nmsu.edu (Susan Margarit) Newsgroups: comp.sys.mac.programmer Subject: Color offscreen pixmap woes... Message-ID: Date: 9 Apr 91 04:28:48 GMT Sender: news@NMSU.Edu Distribution: comp.sys.mac.programmer Organization: NMSU Computer Science Lines: 30 I am using color offscreen bitmaps for the first time and, of course, I am having problems. I am writing a card game, actually, updating one I wrote to color now that I have a color system. I have a 256 color picture as a backdrop stored in one offscreen bitmap. I use a second offscreen bitmap to redraw the hand after each card play. I blast the background to the hand bitmap and then draw the cards over that and then blast the whole thing on to the screen so that the player doesnt have to watch the cards blank and redraw. Sometimes I draw the cards directly on the screen in color. The problem is that the cards drawn directly to the screen come out perfectly in color but the hand that comes from the offscreen map come out in monochrome on a color background. The color backdrop stays in color in the transfer from its offscreen map to the hand offscreen map to the screen but the cards are mono. All of the offscreen maps are created with the same routine ( taken from MacTutor/TN #120). The only difference between drawing the cards to the screen and the offscreen bitmap is a SetPort call ( ie SetPort(handPort) or SetPort(OnscreenPort)). Any Ideas?? Question #2. Why is it that when you draw a 256 color pict resource into a color window, the DrawPicture routine ignores the color palette in the pict and uses the default palette? When you paste it into the scrapbook, the scrapbook uses the correct palette. How do you get DrawPicture to use the correct palette? Thanks for your suggestions! Jim Margarit --No Sig Required--