X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c5e591789b5af00f82b98f0c19833f8d8c1bdc62..de996ce082137fa8f5fcbfd56341ada7915c999a:/src/mac/cursor.cpp diff --git a/src/mac/cursor.cpp b/src/mac/cursor.cpp index d698913890..1200fb9c69 100644 --- a/src/mac/cursor.cpp +++ b/src/mac/cursor.cpp @@ -292,13 +292,7 @@ wxCursor::wxCursor(const wxString& cursor_file, long flags, int hotSpotX, int ho if ( flags == wxBITMAP_TYPE_MACCURSOR_RESOURCE ) { Str255 theName ; - - #if TARGET_CARBON - c2pstrcpy( (StringPtr) theName , cursor_file ) ; - #else - strcpy( (char *) theName , cursor_file ) ; - c2pstr( (char *) theName ) ; - #endif + wxMacStringToPascal( cursor_file , theName ) ; wxStAppResource resload ; Handle resHandle = ::GetNamedResource( 'crsr' , theName ) ;