]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/renderer.cpp
removed unnecessarily overridden wxControl method
[wxWidgets.git] / 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
     {