home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!mcsun!sunic!kth.se!dront.nada.kth.se!d88-jwa
- From: d88-jwa@dront.nada.kth.se (Jon WΣtte)
- Subject: Re: How to get color I want when drawing directly to screen
- Message-ID: <1993Jan8.234656.5509@kth.se>
- Sender: usenet@kth.se (Usenet)
- Nntp-Posting-Host: dront.nada.kth.se
- Organization: Royal Institute of Technology, Stockholm, Sweden
- References: <1993Jan8.145036.21943@rtsg.mot.com>
- Date: Fri, 8 Jan 1993 23:46:56 GMT
- Lines: 26
-
- In <1993Jan8.145036.21943@rtsg.mot.com> wolfmc@rtsg.mot.com (Michael Wolf) writes:
-
- >I am attempting to develop an arcade type game. So I take over the whole
- >screen. I have my images in an offscreen port.
-
- Beware multi-screen setups.
-
- >When I draw directly from the offscreen port to the devices screen
- >(ie: directly copying data from oofscreen port to devices pixmap) the colors
- >are not what I had wanted. A copybits from the offscreen port to my front
- >most window gives me my image with correct colors.
-
- You are suffering from a color table problem. Setting a pallette
- for your window is not enough, unless that pallette has pmExplicit
- (and maybe pmAnimated) for EACH AND EVERY ENTRY. That's probably
- what you want. Then you'll be able to say "color 218 means soft
- Red, and ..."
-
- Oh, and make sure you're hiding the menu bar, but have a way of
- getting back at it (like, when pausing the game)
-
- --
- -- Jon W{tte, h+@nada.kth.se, Mac Hacker Deluxe --
-
- Nothing crashes like a Macintosh.
- -- Guy Kawasaki
-