stason.org logo lotus


previous page: 5.9) But I really need to do it. I can't make my animation into a QuickTime movie, and CopyBits is too slow, even when syncing to the screen retrace and with my source GWorld aligned properly. (Imaging with QuickDraw - Mac Programming)page up: Mac Programming FAQnext page: 5.11) Quit stalling and give me code! (Imaging with QuickDraw - Mac Programming)

5.10) Okay, so how do I get the base address of the screen? (Imaging with QuickDraw - Mac Programming)

 Books
 TULARC
















Description

This article is from the Mac Programming FAQ, by Jon Watte h+@austin.metrowerks.com with numerous contributions by others.

5.10) Okay, so how do I get the base address of the screen? (Imaging with QuickDraw - Mac Programming)

"The" screen? Which screen? There may be several. The base
address may be on an accellerated screen card. There may be more
than one screen covering the same desktop area.

Due to unfortunate circumstances, there is a bug in
GetPixBaseAddr() that causes it to return incorrect results for
early versions of System 7. Instead, get the baseAddr directly
from the gdPMap handle of the GDHandle for the screen you draw
to. This address may need switching to 32bit mode to be valid.

 

Continue to:


Share and Enjoy

Bookmark this story so others can enjoy it:
  • digg
  • Reddit
  • del.icio.us
  • Furl
  • Wists

Tags

os, Mac, macintosh, apple, programming, software







TOP
previous page: 5.9) But I really need to do it. I can't make my animation into a QuickTime movie, and CopyBits is too slow, even when syncing to the screen retrace and with my source GWorld aligned properly. (Imaging with QuickDraw - Mac Programming)page up: Mac Programming FAQnext page: 5.11) Quit stalling and give me code! (Imaging with QuickDraw - Mac Programming)