diff --git a/include/wx/mac/carbon/private.h b/include/wx/mac/carbon/private.h index ce974a7a11..71abe3593f 100644 --- a/include/wx/mac/carbon/private.h +++ b/include/wx/mac/carbon/private.h @@ -479,7 +479,7 @@ void wxMacNativeToRect( const Rect *n , wxRect* wx ); void wxMacPointToNative( const wxPoint* wx , Point *n ); void wxMacNativeToPoint( const Point *n , wxPoint* wx ); -wxWindow * wxFindControlFromMacControl(ControlRef inControl ); +wxWindowMac * wxFindControlFromMacControl(ControlRef inControl ); wxTopLevelWindowMac* wxFindWinFromMacWindow( WindowRef inWindow ); wxMenu* wxFindMenuFromMacMenu(MenuRef inMenuRef); @@ -489,7 +489,7 @@ wxMenu* wxFindMenuFromMacCommand( const HICommand &macCommandId extern wxWindow* g_MacLastWindow; pascal OSStatus wxMacTopLevelMouseEventHandler( EventHandlerCallRef handler , EventRef event , void *data ); -Rect wxMacGetBoundsForControl( wxWindow* window , const wxPoint& pos , const wxSize &size , bool adjustForOrigin = true ); +Rect wxMacGetBoundsForControl( wxWindowMac* window , const wxPoint& pos , const wxSize &size , bool adjustForOrigin = true ); ControlActionUPP GetwxMacLiveScrollbarActionProc(); diff --git a/include/wx/mac/carbon/toplevel.h b/include/wx/mac/carbon/toplevel.h index 9aa6384f1d..269854359e 100644 --- a/include/wx/mac/carbon/toplevel.h +++ b/include/wx/mac/carbon/toplevel.h @@ -61,7 +61,9 @@ public: virtual void Iconize(bool iconize = true); virtual bool IsIconized() const; virtual void SetIcon(const wxIcon& icon); +#ifndef __WXUNIVERSAL__ virtual void SetIcons(const wxIconBundle& icons) { SetIcon( icons.GetIcon( -1 ) ); } +#endif virtual void Restore(); virtual bool SetShape(const wxRegion& region); diff --git a/src/common/dcgraph.cpp b/src/common/dcgraph.cpp index f795d13f05..4490323dce 100644 --- a/src/common/dcgraph.cpp +++ b/src/common/dcgraph.cpp @@ -735,9 +735,10 @@ bool wxGCDC::DoBlit( if ( logical_func == wxNO_OP ) return true; - else if ( logical_func != wxCOPY ) + else if ( !m_graphicContext->SetLogicalFunction( logical_func ) ) + { - wxFAIL_MSG( wxT("Blitting is only supported with wxCOPY logical operation.") ); + wxFAIL_MSG( wxT("Logical function is not supported by the graphics context.") ); return false; } @@ -776,6 +777,9 @@ bool wxGCDC::DoBlit( return false; } + // reset logical function + m_graphicContext->SetLogicalFunction( m_logicalFunction ); + return true; } diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index b741b5a7b5..1897aeddf5 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -25,7 +25,7 @@ #include "wx/listctrl.h" -#if (!defined(__WXMSW__) || defined(__WXUNIVERSAL__)) && !defined(__WXMAC__) +#if (!defined(__WXMSW__) || defined(__WXUNIVERSAL__)) && (!defined(__WXMAC__)|| defined(__WXUNIVERSAL__)) // if we have a native version, its implementation file does all this IMPLEMENT_DYNAMIC_CLASS(wxListItem, wxObject) IMPLEMENT_DYNAMIC_CLASS(wxListView, wxListCtrl)