drawing sash correctly in quickdraw mode when embedded

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@48848 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2007-09-21 10:19:53 +00:00
parent a526724e8e
commit 6e4e10716d

View File

@@ -425,6 +425,16 @@ void wxAuiDefaultDockArt::DrawSash(wxDC& dc, wxWindow *window, int orientation,
QDBeginCGContext( (CGrafPtr) dc.m_macPort , &cgContext ) ;
CGContextTranslateCTM( cgContext , 0 , bounds.bottom - bounds.top ) ;
CGContextScaleCTM( cgContext , 1 , -1 ) ;
if ( window )
{
wxPoint origin = window->GetClientAreaOrigin();
int x, y;
x = origin.x;
y = origin.y;
window->MacWindowToRootWindow( &x , &y );
CGContextTranslateCTM( cgContext, x, y);
}
#endif
HIThemeSplitterDrawInfo drawInfo ;