use wxStockCursor (as documented and as already implemented in wxMotif) instead of a plain 'int'

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55837 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Francesco Montorsi
2008-09-24 19:40:13 +00:00
parent 54590cb078
commit d4f392ea20
20 changed files with 28 additions and 31 deletions

View File

@@ -355,7 +355,7 @@ void wxCursor::CreateFromImage(const wxImage & image)
CGImageRef cgimage = wxMacCreateCGImageFromBitmap(bmp);
if ( cgimage )
{
M_CURSORDATA->m_hCursor = wxMacCocoaCreateCursorFromCGImage( cgimage, hotSpotX, hotSpotY );
M_CURSORDATA->m_hCursor = wxMacCocoaCreateCursorFromCGImage( cgimage, hotSpotX, hotSpotY );
CFRelease( cgimage );
}
#elif wxOSX_USE_CARBON
@@ -556,7 +556,7 @@ wxCursor::wxCursor(const wxString& cursor_file, wxBitmapType flags, int hotSpotX
}
// Cursors by stock number
wxCursor::wxCursor(int cursor_type)
wxCursor::wxCursor(wxStockCursor cursor_type)
{
m_refData = new wxCursorRefData;
#if wxOSX_USE_COCOA