]> git.saurik.com Git - wxWidgets.git/commitdiff
copying as much values from the dc as possible
authorStefan Csomor <csomor@advancedconcepts.ch>
Mon, 9 Oct 2006 16:06:29 +0000 (16:06 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Mon, 9 Oct 2006 16:06:29 +0000 (16:06 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41809 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/graphcmn.cpp

index 16e83757db604558ff906118935282181c93d3ac..25d4e3e5d44856e7bacab6f152137b35825891a4 100644 (file)
@@ -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()