From: Robert Roebling Date: Thu, 15 Jul 1999 18:13:21 +0000 (+0000) Subject: wxWindowDC now uses its window's font X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/3b245d601a2621b13411f667a0f2769db844a775 wxWindowDC now uses its window's font git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3011 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/dcclient.cpp b/src/gtk/dcclient.cpp index 649070a915..eadd93d70c 100644 --- a/src/gtk/dcclient.cpp +++ b/src/gtk/dcclient.cpp @@ -110,6 +110,7 @@ wxWindowDC::wxWindowDC( wxWindow *window ) m_cmap = (GdkColormap *) NULL; m_owner = (wxWindow *)NULL; m_isMemDC = FALSE; + m_font = window->GetFont(); wxASSERT_MSG( window, _T("DC needs a window") ); diff --git a/src/gtk1/dcclient.cpp b/src/gtk1/dcclient.cpp index 649070a915..eadd93d70c 100644 --- a/src/gtk1/dcclient.cpp +++ b/src/gtk1/dcclient.cpp @@ -110,6 +110,7 @@ wxWindowDC::wxWindowDC( wxWindow *window ) m_cmap = (GdkColormap *) NULL; m_owner = (wxWindow *)NULL; m_isMemDC = FALSE; + m_font = window->GetFont(); wxASSERT_MSG( window, _T("DC needs a window") );