home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!panther!mothost!white!rtsg.mot.com!wolfmc
- From: wolfmc@rtsg.mot.com (Michael Wolf)
- Subject: How to get color I want when drawing directly to screen
- Message-ID: <1993Jan8.145036.21943@rtsg.mot.com>
- Sender: news@rtsg.mot.com
- Nntp-Posting-Host: navy9
- Organization: Motorola Inc., Cellular Infrastructure Group
- Date: Fri, 8 Jan 1993 14:50:36 GMT
- Lines: 28
-
- I am attempting to develop an arcade type game. So I take over the whole
- screen. I have my images in an offscreen port.
-
- 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.
-
- This may sound confusing; what do I mean by my front most window....well, I
- have my own window opened up and I make it take up the entire screen, then I
- draw directly to the devices video memory. This way I can still use QD
- calls on the window for actions which are not time critical.
-
- So...the $60 questions is: What isthe best/fastest way to get the colors I
- had intended with the image when I am doing direct writing to device video
- memory.
-
- Help/Suggestions are greatly appreciated. Thanks.
-
-
- MJW
-
- -=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-
- | Michael J. Wolf | McIntosh Jr: The power to crush the other kids|
- | Software Engineer | |
- | wolfmc@green.rtsg.mot.com| Disclaimer? Hell, I don't even know her! |
- -=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-
-
-