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:
@@ -511,7 +511,7 @@ void wxControlRenderer::DrawBitmap(wxDC &dc,
|
|||||||
else if ( stretch & wxEXPAND )
|
else if ( stretch & wxEXPAND )
|
||||||
{
|
{
|
||||||
// stretch bitmap to fill the entire control
|
// 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
|
else // not stretched, not tiled
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user