home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / mac / programm / 21029 < prev    next >
Encoding:
Text File  |  1993-01-08  |  1.7 KB  |  40 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!panther!mothost!white!rtsg.mot.com!wolfmc
  3. From: wolfmc@rtsg.mot.com (Michael Wolf)
  4. Subject: How to get color I want when drawing directly to screen
  5. Message-ID: <1993Jan8.145036.21943@rtsg.mot.com>
  6. Sender: news@rtsg.mot.com
  7. Nntp-Posting-Host: navy9
  8. Organization: Motorola Inc., Cellular Infrastructure Group
  9. Date: Fri, 8 Jan 1993 14:50:36 GMT
  10. Lines: 28
  11.  
  12. I am attempting to develop an arcade type game.  So I take over the whole
  13. screen.  I have my images in an offscreen port.
  14.  
  15. When I draw directly from the offscreen port to the devices screen
  16. (ie:  directly copying data from oofscreen port to devices pixmap) the colors
  17. are not what I had wanted.  A copybits from the offscreen port to my front
  18. most window gives me my image with correct colors.
  19.  
  20. This may sound confusing;  what do I mean by my front most window....well, I
  21. have my own window opened up and I make it take up the entire screen, then I
  22. draw directly to the devices video memory.  This way I can still use QD
  23. calls on the window for actions which are not time critical.
  24.  
  25. So...the $60 questions is:  What isthe best/fastest way to get the colors I
  26. had intended with the image when I am doing direct writing to device video
  27. memory.
  28.  
  29. Help/Suggestions are greatly appreciated.  Thanks.
  30.  
  31.  
  32. MJW
  33.  
  34. -=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-
  35. | Michael J. Wolf          | McIntosh Jr:  The power to crush the other kids|
  36. | Software Engineer        |                                                |
  37. | wolfmc@green.rtsg.mot.com|      Disclaimer?  Hell, I don't even know her! |
  38. -=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-
  39.  
  40.