Icons fetched from wxMimeTypesManager did not get the width/height of
the icon, now they do. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16184 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -184,7 +184,6 @@ IMPLEMENT_DYNAMIC_CLASS(wxICOResourceHandler, wxObject)
|
||||
// private functions
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
static wxSize GetHiconSize(HICON hicon);
|
||||
#endif
|
||||
// __MICROWIN__
|
||||
|
||||
@@ -466,7 +465,7 @@ bool wxICOFileHandler::LoadIcon(wxIcon *icon,
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
size = GetHiconSize(hicon);
|
||||
size = wxGetHiconSize(hicon);
|
||||
#else // Win16
|
||||
HICON hicon = ReadIconFile((wxChar *)name.c_str(),
|
||||
wxGetInstance(),
|
||||
@@ -551,7 +550,7 @@ bool wxICOResourceHandler::LoadIcon(wxIcon *icon,
|
||||
}
|
||||
}
|
||||
|
||||
wxSize size = GetHiconSize(hicon);
|
||||
wxSize size = wxGetHiconSize(hicon);
|
||||
icon->SetSize(size.x, size.y);
|
||||
|
||||
icon->SetHICON((WXHICON)hicon);
|
||||
@@ -563,7 +562,7 @@ bool wxICOResourceHandler::LoadIcon(wxIcon *icon,
|
||||
// private functions
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
static wxSize GetHiconSize(HICON hicon)
|
||||
wxSize wxGetHiconSize(HICON hicon)
|
||||
{
|
||||
wxSize size(32, 32); // default
|
||||
|
||||
|
Reference in New Issue
Block a user