no need to check for 2.3.0 anymore
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19684 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -911,15 +911,8 @@ wxIcon wxXmlResourceHandler::GetIcon(const wxString& param,
|
|||||||
const wxArtClient& defaultArtClient,
|
const wxArtClient& defaultArtClient,
|
||||||
wxSize size)
|
wxSize size)
|
||||||
{
|
{
|
||||||
#if wxCHECK_VERSION(2,3,0) || defined(__WXMSW__)
|
|
||||||
wxIcon icon;
|
wxIcon icon;
|
||||||
icon.CopyFromBitmap(GetBitmap(param, defaultArtClient, size));
|
icon.CopyFromBitmap(GetBitmap(param, defaultArtClient, size));
|
||||||
#else
|
|
||||||
wxIcon *iconpt;
|
|
||||||
wxBitmap bmppt = GetBitmap(param, size);
|
|
||||||
iconpt = (wxIcon*)(&bmppt);
|
|
||||||
wxIcon icon(*iconpt);
|
|
||||||
#endif
|
|
||||||
return icon;
|
return icon;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -911,15 +911,8 @@ wxIcon wxXmlResourceHandler::GetIcon(const wxString& param,
|
|||||||
const wxArtClient& defaultArtClient,
|
const wxArtClient& defaultArtClient,
|
||||||
wxSize size)
|
wxSize size)
|
||||||
{
|
{
|
||||||
#if wxCHECK_VERSION(2,3,0) || defined(__WXMSW__)
|
|
||||||
wxIcon icon;
|
wxIcon icon;
|
||||||
icon.CopyFromBitmap(GetBitmap(param, defaultArtClient, size));
|
icon.CopyFromBitmap(GetBitmap(param, defaultArtClient, size));
|
||||||
#else
|
|
||||||
wxIcon *iconpt;
|
|
||||||
wxBitmap bmppt = GetBitmap(param, size);
|
|
||||||
iconpt = (wxIcon*)(&bmppt);
|
|
||||||
wxIcon icon(*iconpt);
|
|
||||||
#endif
|
|
||||||
return icon;
|
return icon;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user