From 6e4e10716db35b03935646b6669ac30e68d70f9d Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Fri, 21 Sep 2007 10:19:53 +0000 Subject: [PATCH] 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 --- src/aui/dockart.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/aui/dockart.cpp b/src/aui/dockart.cpp index 82f0d04aac..bbdc44a924 100644 --- a/src/aui/dockart.cpp +++ b/src/aui/dockart.cpp @@ -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 ;