X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8cb172b4f12fae80b06d5936108a1bc7f2521674..818503a1826c8d32340234318afe6de35f756c2f:/src/univ/renderer.cpp diff --git a/src/univ/renderer.cpp b/src/univ/renderer.cpp index 36f7f0d853..4053fbf68f 100644 --- a/src/univ/renderer.cpp +++ b/src/univ/renderer.cpp @@ -5,7 +5,7 @@ // Modified by: // Created: 15.08.00 // RCS-ID: $Id$ -// Copyright: (c) 2000 Vadim Zeitlin +// Copyright: (c) 2000 SciTech Software, Inc. (www.scitechsoft.com) // Licence: wxWindows license /////////////////////////////////////////////////////////////////////////////// @@ -417,6 +417,7 @@ wxControlRenderer::wxControlRenderer(wxWindow *window, void wxControlRenderer::DrawLabel(const wxBitmap& bitmap, wxCoord marginX, wxCoord marginY) { + m_dc.SetBackgroundMode(wxTRANSPARENT); m_dc.SetFont(m_window->GetFont()); m_dc.SetTextForeground(m_window->GetForegroundColour()); @@ -771,7 +772,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() ) {