]> git.saurik.com Git - wxWidgets.git/commitdiff
compilation fix for !WXWIN_COMPATIBILITY_2_2
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 5 Apr 2002 18:23:40 +0000 (18:23 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 5 Apr 2002 18:23:40 +0000 (18:23 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14952 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/univ/renderer.cpp

index 3ad6923ec2b24da83b94669da693acd56f0a0328..3d55a23cfba47ad6dc7a9c9720486d4cf7767a21 100644 (file)
@@ -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
     {