X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a407ff6ae8668b8f37b139a9420bcc041fa8adc1..0fa784572f2324fe246158d8eec9492fac604483:/src/univ/renderer.cpp diff --git a/src/univ/renderer.cpp b/src/univ/renderer.cpp index 16c2c2de04..3ad6923ec2 100644 --- 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) { + m_dc.SetBackgroundMode(wxTRANSPARENT); m_dc.SetFont(m_window->GetFont()); m_dc.SetTextForeground(m_window->GetForegroundColour()); @@ -427,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);