From: Vadim Zeitlin Date: Fri, 5 Apr 2002 18:23:40 +0000 (+0000) Subject: compilation fix for !WXWIN_COMPATIBILITY_2_2 X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/1c9f06b14c171ff1711e9d554135f9d90b094242 compilation fix for !WXWIN_COMPATIBILITY_2_2 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14952 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/univ/renderer.cpp b/src/univ/renderer.cpp index 3ad6923ec2..3d55a23cfb 100644 --- a/src/univ/renderer.cpp +++ b/src/univ/renderer.cpp @@ -511,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 {