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:
@@ -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 ;
|
||||
|
Reference in New Issue
Block a user