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:
@@ -306,6 +306,11 @@ wxGCDC::wxGCDC(const wxWindowDC& dc)
|
|||||||
m_ok = true;
|
m_ok = true;
|
||||||
if ( dc.GetFont().Ok())
|
if ( dc.GetFont().Ok())
|
||||||
m_graphicContext->SetFont(dc.GetFont());
|
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()
|
void wxGCDC::Init()
|
||||||
|
Reference in New Issue
Block a user