diff --git a/include/wx/msw/metafile.h b/include/wx/msw/metafile.h index de7eda4124..c37eefa682 100644 --- a/include/wx/msw/metafile.h +++ b/include/wx/msw/metafile.h @@ -88,9 +88,11 @@ public: // Should be called at end of drawing virtual wxMetafile *Close(); virtual void SetMapMode(int mode); - virtual void GetTextExtent(const wxString& string, long *x, long *y, - long *descent = NULL, long *externalLeading = NULL, - const wxFont *theFont = NULL, bool use16bit = false) const; + virtual void DoGetTextExtent(const wxString& string, + wxCoord *x, wxCoord *y, + wxCoord *descent = NULL, + wxCoord *externalLeading = NULL, + const wxFont *theFont = NULL) const; // Implementation wxMetafile *GetMetaFile() const { return m_metaFile; } diff --git a/src/msw/metafile.cpp b/src/msw/metafile.cpp index 5b3e574c4d..cca6815690 100644 --- a/src/msw/metafile.cpp +++ b/src/msw/metafile.cpp @@ -209,10 +209,10 @@ wxMetafileDC::~wxMetafileDC() m_hDC = 0; } -void wxMetafileDC::GetTextExtent(const wxString& string, long *x, long *y, - long *descent, long *externalLeading, - const wxFont *theFont, - bool WXUNUSED(use16bit)) const +void wxMetafileDC::DoGetTextExtent(const wxString& string, + wxCoord *x, wxCoord *y, + wxCoord *descent, wxCoord *externalLeading, + const wxFont *theFont) const { const wxFont *fontToUse = theFont; if (!fontToUse)