X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3a0b23eb745d4159dcb2ed5f1710444d98807ccf..cd5e9298159e58f57e05f3b76c9d4a45e1eefe12:/src/univ/renderer.cpp?ds=inline diff --git a/src/univ/renderer.cpp b/src/univ/renderer.cpp index 4053fbf68f..3d55a23cfb 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); @@ -507,7 +511,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 {