diff --git a/src/univ/renderer.cpp b/src/univ/renderer.cpp index 0021d3f2f8..bc276a675a 100644 --- a/src/univ/renderer.cpp +++ b/src/univ/renderer.cpp @@ -429,10 +429,6 @@ 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); diff --git a/src/univ/themes/gtk.cpp b/src/univ/themes/gtk.cpp index 5c4f87e74c..b3a5c59d4a 100644 --- a/src/univ/themes/gtk.cpp +++ b/src/univ/themes/gtk.cpp @@ -1610,6 +1610,10 @@ void wxGTKRenderer::DrawRadioButton(wxDC& dc, dc.SetBackground(*wxLIGHT_GREY_BRUSH); dc.Clear(); DrawRadioBitmap(dc, rect, flags); + + // must unselect the bitmap before setting a mask for it because of the + // MSW limitations + dc.SelectObject(wxNullBitmap); bitmap.SetMask(new wxMask(bitmap, *wxLIGHT_GREY)); } diff --git a/src/univ/themes/win32.cpp b/src/univ/themes/win32.cpp index d3afd47d7c..085a672638 100644 --- a/src/univ/themes/win32.cpp +++ b/src/univ/themes/win32.cpp @@ -1737,8 +1737,7 @@ void wxWin32Renderer::DrawHalfRect(wxDC& dc, wxRect *rect, const wxPen& pen) rect->GetRight(), rect->GetBottom()); // adjust the rect - rect->width--; - rect->height--; + rect->Inflate(-1); } void wxWin32Renderer::DrawShadedRect(wxDC& dc, wxRect *rect,