]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/renderer.cpp
Various compile fixes.
[wxWidgets.git] / src / univ / renderer.cpp
index 19c027723c7fac2fbebdd9311196eec71eb59732..16c2c2de0449d19116dad854dcb54d484f690156 100644 (file)
@@ -771,7 +771,9 @@ void wxControlRenderer::DrawProgressBar(const wxGauge *gauge)
     wxRect rect = m_rect;
     rect.Deflate(1); // FIXME this depends on the border width
 
-    m_dc.SetBrush(wxBrush(m_window->GetForegroundColour(), wxSOLID));
+    wxColour col = m_window->UseFgCol() ? m_window->GetForegroundColour()
+                                        : wxTHEME_COLOUR(GAUGE);
+    m_dc.SetBrush(wxBrush(col, wxSOLID));
 
     if ( gauge->IsSmooth() )
     {