compilation fix for !WXWIN_COMPATIBILITY_2_2

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14952 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2002-04-05 18:23:40 +00:00
parent c8dbe0aee2
commit 1c9f06b14c

View 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
{