Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CopyBits and dual monitor configration



On Jul 29, 2004, at 5:47 PM, Scott Thompson wrote:

It is not the case that you have to have the current port be the
destination port, but it is a good idea nonetheless. It is also a good
idea to make sure the Foreground color is set to black and the
background color is set to white before making a CopyBits call as well.

Oh, it's more than a suggestion. I remember all the way back in System 7, I had bizarre, hard-to-reproduce problems that I eventually tracked down to "you must SetPort to the destination port before CopyBits". The various problems you'd experience would change between OS releases, but it definitely has mattered and caused real bugs.
_______________________________________________
carbon-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/carbon-development
Do not post admin requests to the list. They will be ignored.


References: 
 >CopyBits and dual monitor configration (From: "Dotzler, Josef" <email@hidden>)
 >Re: CopyBits and dual monitor configration (From: Ken Worley <email@hidden>)
 >Re: CopyBits and dual monitor configration (From: Scott Thompson <email@hidden>)
 >Re: CopyBits and dual monitor configration (From: OL&L Lists <email@hidden>)
 >Re: CopyBits and dual monitor configration (From: Scott Thompson <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.