From: Stefan Csomor Date: Mon, 9 Oct 2006 16:06:29 +0000 (+0000) Subject: copying as much values from the dc as possible X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/af86380553169606c985e0053a1630e9514e18b6 copying as much values from the dc as possible git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41809 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/graphcmn.cpp b/src/common/graphcmn.cpp index 16e83757db..25d4e3e5d4 100644 --- a/src/common/graphcmn.cpp +++ b/src/common/graphcmn.cpp @@ -306,6 +306,11 @@ wxGCDC::wxGCDC(const wxWindowDC& dc) m_ok = true; if ( dc.GetFont().Ok()) m_graphicContext->SetFont(dc.GetFont()); + if ( dc.GetPen().Ok()) + m_graphicContext->SetPen(dc.GetPen()); + if ( dc.GetBrush().Ok()) + m_graphicContext->SetBrush(dc.GetBrush()); + m_graphicContext->SetTextColor(dc.GetTextForeground()); } void wxGCDC::Init()