X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a2d3a3d1d38ef64050ddcd9b2754c855167aad1f..73ed39b580977913998bbb988e52e474fe9835ae:/src/mac/carbon/menuitem.cpp diff --git a/src/mac/carbon/menuitem.cpp b/src/mac/carbon/menuitem.cpp index ccfcf8da8d..5188955ad4 100644 --- a/src/mac/carbon/menuitem.cpp +++ b/src/mac/carbon/menuitem.cpp @@ -86,16 +86,17 @@ void wxMenuItem::UpdateItemBitmap() if ( m_bitmap.Ok() ) { +#if wxUSE_BMPBUTTON ControlButtonContentInfo info ; - wxMacCreateBitmapButton( &info , m_bitmap , kControlContentCIconHandle ) ; + wxMacCreateBitmapButton( &info , m_bitmap ) ; if ( info.contentType != kControlNoContent ) { - if ( info.contentType == kControlContentCIconHandle ) + if ( info.contentType == kControlContentIconRef ) SetMenuItemIconHandle( mhandle , index , - kMenuColorIconType , (Handle) info.u.cIconHandle ) ; + kMenuIconRefType , (Handle) info.u.iconRef ) ; } wxMacReleaseBitmapButton( &info ) ; - +#endif } }