X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3a0b23eb745d4159dcb2ed5f1710444d98807ccf..dfe8399aa013a1fa6487d008bf1176078f218c6d:/src/univ/renderer.cpp diff --git a/src/univ/renderer.cpp b/src/univ/renderer.cpp index 4053fbf68f..75539ac04c 100644 --- a/src/univ/renderer.cpp +++ b/src/univ/renderer.cpp @@ -428,6 +428,10 @@ void wxControlRenderer::DrawLabel(const wxBitmap& bitmap, if ( bitmap.Ok() ) { rectLabel.Inflate(-marginX, -marginY); + + // I don't know why this is necessary. RR. + rectLabel.x ++; + rectLabel.y ++; } wxControl *ctrl = wxStaticCast(m_window, wxControl); @@ -464,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) @@ -507,7 +512,7 @@ void wxControlRenderer::DrawBitmap(wxDC &dc, else if ( stretch & wxEXPAND ) { // stretch bitmap to fill the entire control - bmp = wxImage(bmp).Scale(rect.width, rect.height).ConvertToBitmap(); + bmp = wxImage(bmp.ConvertToImage()).Scale(rect.width, rect.height); } else // not stretched, not tiled {