X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1c9f06b14c171ff1711e9d554135f9d90b094242..e3dbf5934e997729c6f4f5154b1b7f29d5d22149:/src/univ/renderer.cpp diff --git a/src/univ/renderer.cpp b/src/univ/renderer.cpp index 3d55a23cfb..13db530ddb 100644 --- a/src/univ/renderer.cpp +++ b/src/univ/renderer.cpp @@ -468,7 +468,8 @@ void wxControlRenderer::DrawButtonBorder() m_renderer->DrawButtonBorder(m_dc, m_rect, flags, &m_rect); - m_renderer->DrawBackground(m_dc, wxTHEME_BG_COLOUR(m_window), m_rect, flags); + // Why do this here? + // m_renderer->DrawButtonSurface(m_dc, wxTHEME_BG_COLOUR(m_window), m_rect, flags ); } void wxControlRenderer::DrawBitmap(const wxBitmap& bitmap) @@ -511,7 +512,7 @@ void wxControlRenderer::DrawBitmap(wxDC &dc, else if ( stretch & wxEXPAND ) { // stretch bitmap to fill the entire control - bmp = wxImage(bmp.ConvertToImage()).Scale(rect.width, rect.height); + bmp = wxBitmap(wxImage(bmp.ConvertToImage()).Scale(rect.width, rect.height)); } else // not stretched, not tiled {