Mailing Lists: Apple Mailing Lists

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

AW: AW: CopyBits and dual monitor configration - Problem solved



> >> Calling LockPortBits did it!
> >> After reading the documentation for LockPortBits a long time ago, I
> >> thought that it was not necessary to call this function when using
> >> Quickdraw or Quartz and didn't care about it any more. Calls to
> >> PaintRect and others seemed to confirm this. But the
> exception proves
> >> the rule, this is not the case for CopyBits.
> >
> > It would appear then, that I was wrong. I'm glad that you found a
> > solution!
>
> I still suspect your real bug is elsewhere, and that this is masking
> the problem.
> But I can't help without seeing your whole source :)

You wouldn't be glad if I gave you my whole source, since it has grown very much over the years :)
The problem didn't appear before because this was the first time I used CopyBits directly. The other windows use a complex and powerful C++ class to draw images onto the screen. I didn't write that class by myself, and I currently don't have the time to explore the details of this class. But it sounds plausible to me that LockPortBits has to be called before using CopyBits, since there was no problem when using any other drawing function.

Josef
_______________________________________________
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.




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.