git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14753
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#include "wx/artprov.h"
#include "wx/hashmap.h"
#include "wx/module.h"
+#include "wx/image.h"
// For the purposes of forcing this module to link
extern char g_ArtProviderModule;
{
bmp = node->GetData()->CreateBitmap(id, client, size);
if ( bmp.Ok() )
+ {
+ if ( size != wxDefaultSize &&
+ (bmp.GetWidth() != size.x || bmp.GetHeight() != size.y) )
+ {
+ wxImage img = bmp.ConvertToImage();
+ img.Rescale(size.x, size.y);
+ bmp = wxBitmap(img);
+ }
break;
+ }
}
+
sm_cache->PutBitmap(hashId, bmp);
}