fixing two unicode compile errors
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38847 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -149,7 +149,7 @@ static pascal OSStatus KeyboardEventHandler( EventHandlerCallRef handler , Event
|
|||||||
uniChar = charBuf[0] ;
|
uniChar = charBuf[0] ;
|
||||||
#else
|
#else
|
||||||
wxMBConvUTF16 converter ;
|
wxMBConvUTF16 converter ;
|
||||||
converter.MB2WC( &uniChar , (const char*)charBuf , 2 ) ;
|
converter.MB2WC( uniChar , (const char*)charBuf , 2 ) ;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if ( numChars * 2 > 4 )
|
if ( numChars * 2 > 4 )
|
||||||
@@ -200,7 +200,7 @@ static pascal OSStatus KeyboardEventHandler( EventHandlerCallRef handler , Event
|
|||||||
event.m_y = point.v;
|
event.m_y = point.v;
|
||||||
|
|
||||||
#if wxUSE_UNICODE
|
#if wxUSE_UNICODE
|
||||||
event.m_uniChar = uniChar ;
|
event.m_uniChar = uniChar[0] ;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
event.SetTimestamp(when);
|
event.SetTimestamp(when);
|
||||||
|
Reference in New Issue
Block a user