support mac on little endian systems
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34561 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -271,9 +271,14 @@ IconRef wxBitmapRefData::GetIconRef()
|
|||||||
|
|
||||||
IconFamilyHandle iconFamily = NULL ;
|
IconFamilyHandle iconFamily = NULL ;
|
||||||
|
|
||||||
|
#ifdef WORDS_BIGENDIAN
|
||||||
iconFamily = (IconFamilyHandle) NewHandle(8) ;
|
iconFamily = (IconFamilyHandle) NewHandle(8) ;
|
||||||
(**iconFamily).resourceType = kIconFamilyType ;
|
(**iconFamily).resourceType = kIconFamilyType ;
|
||||||
(**iconFamily).resourceSize = sizeof(OSType) + sizeof(Size);
|
(**iconFamily).resourceSize = sizeof(OSType) + sizeof(Size);
|
||||||
|
#else
|
||||||
|
// test this solution on big endian as well
|
||||||
|
iconFamily = (IconFamilyHandle) NewHandle(0) ;
|
||||||
|
#endif
|
||||||
|
|
||||||
int w = GetWidth() ;
|
int w = GetWidth() ;
|
||||||
int h = GetHeight() ;
|
int h = GetHeight() ;
|
||||||
|
Reference in New Issue
Block a user