X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/902725eefee5a402d21d13b2630583ab28ae3931..b9efe021b554fa3967d1442cf758435c5cd5ae8f:/src/mac/carbon/bitmap.cpp?ds=sidebyside diff --git a/src/mac/carbon/bitmap.cpp b/src/mac/carbon/bitmap.cpp index 12ade3f74a..f15aa10143 100644 --- a/src/mac/carbon/bitmap.cpp +++ b/src/mac/carbon/bitmap.cpp @@ -271,9 +271,14 @@ IconRef wxBitmapRefData::GetIconRef() IconFamilyHandle iconFamily = NULL ; +#ifdef WORDS_BIGENDIAN iconFamily = (IconFamilyHandle) NewHandle(8) ; (**iconFamily).resourceType = kIconFamilyType ; (**iconFamily).resourceSize = sizeof(OSType) + sizeof(Size); +#else + // test this solution on big endian as well + iconFamily = (IconFamilyHandle) NewHandle(0) ; +#endif int w = GetWidth() ; int h = GetHeight() ;