projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
new bitmap creation code for mac
[wxWidgets.git]
/
src
/
univ
/
renderer.cpp
diff --git
a/src/univ/renderer.cpp
b/src/univ/renderer.cpp
index 19c027723c7fac2fbebdd9311196eec71eb59732..4053fbf68feb622a88ae4564b76cb5af90650d7b 100644
(file)
--- a/
src/univ/renderer.cpp
+++ b/
src/univ/renderer.cpp
@@
-417,6
+417,7
@@
wxControlRenderer::wxControlRenderer(wxWindow *window,
void wxControlRenderer::DrawLabel(const wxBitmap& bitmap,
wxCoord marginX, wxCoord marginY)
{
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());
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
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() )
{
if ( gauge->IsSmooth() )
{