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
This commit is contained in:
Stefan Csomor 2006-10-09 16:06:29 +00:00
parent ebbe5c6686
commit af86380553

View 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()