X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f724f440fdb878c6d701103e01838c9d297a33d9..59b7da02ff62a33862accc13158870f2a9a23630:/src/dfb/window.cpp diff --git a/src/dfb/window.cpp b/src/dfb/window.cpp index 2456eac046..bfe64b16f0 100644 --- a/src/dfb/window.cpp +++ b/src/dfb/window.cpp @@ -557,10 +557,11 @@ int wxWindowDFB::GetCharWidth() const return dc.GetCharWidth(); } -void wxWindowDFB::GetTextExtent(const wxString& string, - int *x, int *y, - int *descent, int *externalLeading, - const wxFont *theFont) const +void wxWindowDFB::DoGetTextExtent(const wxString& string, + int *x, int *y, + int *descent, + int *externalLeading, + const wxFont *theFont) const { wxWindowDC dc((wxWindow*)this); dc.GetTextExtent(string, x, y, descent, externalLeading, (wxFont*)theFont); @@ -800,7 +801,7 @@ void wxWindowDFB::RemoveOverlay(wxOverlayImpl *overlay) #define KEY(dfb, wx) \ case dfb: \ wxLogTrace(TRACE_EVENTS, \ - _T("key " #dfb " mapped to " #wx)); \ + wxT("key " #dfb " mapped to " #wx)); \ return wx // returns translated keycode, i.e. the one for KEYUP/KEYDOWN where 'a'..'z' is @@ -966,13 +967,11 @@ static long GetUntraslatedKeyCode(DFBInputDeviceKeyIdentifier key_id, return key_symbol; else { -#if wxUSE_WCHAR_T wchar_t chr = key_symbol; wxCharBuffer buf(wxConvUI->cWC2MB(&chr, 1, NULL)); if ( buf ) return *buf; // may be 0 if failed else -#endif // wxUSE_WCHAR_T return 0; } #endif