return M_ICONDATA->GetHeight();
}
+int wxIcon::GetDepth() const{
+ return 32;
+}
+
+void wxIcon::SetDepth(int depth){
+
+}
+
+void wxIcon::SetWidth(int width){
+
+}
+
+void wxIcon::SetHeight(int height){
+
+}
+
bool wxIcon::Ok() const
{
return m_refData != NULL ;
{
UnRef() ;
- m_refData = new wxIconRefData( (WXHICON) wxMacCreateIconRef( bmp ) ) ;
+ // as the bitmap owns that ref, we have to acquire it as well
+ IconRef iconRef = bmp.GetBitmapData()->GetIconRef() ;
+ AcquireIconRef( iconRef ) ;
+ m_refData = new wxIconRefData( (WXHICON) iconRef ) ;
M_ICONDATA->SetWidth( bmp.GetWidth() ) ;
M_ICONDATA->SetHeight( bmp.GetHeight() ) ;
}