]> git.saurik.com Git - wxWidgets.git/commitdiff
use window's font instead of the default one in wxStatusBar
authorVáclav Slavík <vslavik@fastmail.fm>
Wed, 25 Oct 2006 18:14:08 +0000 (18:14 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Wed, 25 Oct 2006 18:14:08 +0000 (18:14 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/univ/statusbr.cpp

index b4846a87665657dde306ce74c6c459486769ef03..8c817a5ab3cd381d28a787872807a72a393671ab 100644 (file)
@@ -110,7 +110,8 @@ void wxStatusBarUniv::DoDraw(wxControlRenderer *renderer)
 
     // prepare the DC
     wxDC& dc = renderer->GetDC();
-    dc.SetFont(wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT));
+    dc.SetFont(GetFont());
+    dc.SetTextForeground(GetForegroundColour());
 
     // do draw the fields
     int flags = IsEnabled() ? 0 : (int)wxCONTROL_DISABLED;