X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/47d67540a017101b3e46abe9ef0f55914d8de37e..7c5457867870a0a33951def66373f5a76ec3ae4a:/src/msw/font.cpp diff --git a/src/msw/font.cpp b/src/msw/font.cpp index da43d01fac..a953351bae 100644 --- a/src/msw/font.cpp +++ b/src/msw/font.cpp @@ -30,7 +30,7 @@ #endif #include "wx/msw/private.h" -#include "assert.h" +#include #if !USE_SHARED_LIBRARIES IMPLEMENT_DYNAMIC_CLASS(wxFont, wxGDIObject) @@ -158,9 +158,9 @@ bool wxFont::RealizeResource(void) else if (M_FONTDATA->m_weight == wxBOLD) ff_weight = FW_BOLD; - const char* pzFace = (const char*) ff_face; + const wxChar* pzFace = (const wxChar*) ff_face; if (!M_FONTDATA->m_faceName.IsNull()) - pzFace = (const char*) M_FONTDATA->m_faceName ; + pzFace = (const wxChar*) M_FONTDATA->m_faceName ; /* Always calculate fonts using the screen DC (is this the best strategy?) * There may be confusion if a font is selected into a printer @@ -192,7 +192,7 @@ bool wxFont::RealizeResource(void) // up fonts. So, set ppInch to a constant 96 dpi. ppInch = 96; -#if FONT_SIZE_COMPATIBILITY +#if wxFONT_SIZE_COMPATIBILITY // Incorrect, but compatible with old wxWindows behaviour int nHeight = (M_FONTDATA->m_pointSize*ppInch/72); #else @@ -232,7 +232,7 @@ WXHANDLE wxFont::GetResourceHandle() return (WXHANDLE)M_FONTDATA->m_hFont ; } -bool wxFont::IsFree() +bool wxFont::IsFree() const { return (M_FONTDATA && (M_FONTDATA->m_hFont == 0)); }