Incomplete setup build fix (wxPalmOS).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32812 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -201,6 +201,7 @@ wxBitmap wxDefaultArtProvider::CreateBitmap(const wxArtID& id,
|
|||||||
{
|
{
|
||||||
wxBitmap bmp = wxDefaultArtProvider_CreateBitmap(id);
|
wxBitmap bmp = wxDefaultArtProvider_CreateBitmap(id);
|
||||||
|
|
||||||
|
#if wxUSE_IMAGE
|
||||||
if (bmp.Ok())
|
if (bmp.Ok())
|
||||||
{
|
{
|
||||||
// fit into transparent image with desired size hint from the client
|
// fit into transparent image with desired size hint from the client
|
||||||
@@ -219,9 +220,11 @@ wxBitmap wxDefaultArtProvider::CreateBitmap(const wxArtID& id,
|
|||||||
wxImage img = bmp.ConvertToImage();
|
wxImage img = bmp.ConvertToImage();
|
||||||
img.Resize(bestSize, offset);
|
img.Resize(bestSize, offset);
|
||||||
bmp = wxBitmap(img);
|
bmp = wxBitmap(img);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif // wxUSE_IMAGE
|
||||||
|
|
||||||
return bmp;
|
return bmp;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user