Skip to content

Commit

Permalink
Debug: Display coordinates of bounding box
Browse files Browse the repository at this point in the history
  • Loading branch information
a-wi committed Dec 14, 2022
1 parent c94693e commit f5f2d3d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/osx/carbon/graphics.cpp
Expand Up @@ -2186,9 +2186,15 @@ void wxMacCoreGraphicsContext::ResetClip()
// which mask the issue with repainting some controls - see bug #22629.
// This is probably due to restoring some graphics attributes.
// TODO: Don't call EmulateResetClip() here after fixing the issue.
CGRect clip0 = CGContextGetClipBoundingBox(m_cgContext);
wxLogDebug("Clip0: %.0f,%.0f %.0fx%.0f %i", clip0.origin.x, clip0.origin.y, clip0.size.width, clip0.size.height, m_stateStackLevel);
EmulateResetClip(false);
CGRect clip1 = CGContextGetClipBoundingBox(m_cgContext);
wxLogDebug("Clip1: %.0f,%.0f %.0fx%.0f", clip1.origin.x, clip1.origin.y, clip1.size.width, clip1.size.height);

CGContextResetClip(m_cgContext);
CGRect clip2 = CGContextGetClipBoundingBox(m_cgContext);
wxLogDebug("Clip2: %.0f,%.0f %.0fx%.0f", clip2.origin.x, clip2.origin.y, clip2.size.width, clip2.size.height);
}
else
#endif
Expand Down

0 comments on commit f5f2d3d

Please sign in to comment.