I've got a difficult drawing bug that I am trying to
track down. I know what is going on - during the draw routine, the
region returned by GetPortVisibleRegion is wrong. I believe it is
because someone has done something to cause SetPortVisibleRegion to be
called with the bad region. I cannot just search for all of the calls to
SetPortVisibleRegion, because it can be called by various OS calls,
like BeginUpdate.
It is easy to setup Instruments to show me all of the times that
SetPortVisibleRegion is called and I am making some progress based just on this information.
However, it would be even more useful if I could see the bounds of
the region being passed in. I am certain this is possible, but I don't
know how to do it.
Anyone know?
p.s. if there are any other calls that people are aware of that would
affect the region returned by GetPortVisibleRegion, I would be
interested in that as well.
Thank you.