copying native cursor under cocoa

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63957 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor 2010-04-12 16:26:16 +00:00
parent 849252d51c
commit ad05cdb74c

View File

@ -233,12 +233,12 @@ wxCursorRefData::wxCursorRefData()
wxCursorRefData::wxCursorRefData(const wxCursorRefData& cursor)
{
// FIXME: need to copy the cursor
m_hCursor = NULL;
#if wxOSX_USE_COCOA
wxUnusedVar(cursor);
m_hCursor = (WX_NSCursor) wxMacCocoaRetain(cursor.m_hCursor);
#elif wxOSX_USE_CARBON
// FIXME: need to copy the cursor
m_disposeHandle = false;
m_releaseHandle = false;
m_isColorCursor = cursor.m_isColorCursor;