X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ee8fd6b1bdcae7c7d34a4c7c142895dd4c4573fb..dd9f8b6bb6935360a8271dc3e8749fb026b601a8:/src/msw/font.cpp diff --git a/src/msw/font.cpp b/src/msw/font.cpp index eec88f8c06..f2ff677d8a 100644 --- a/src/msw/font.cpp +++ b/src/msw/font.cpp @@ -483,7 +483,7 @@ int wxNativeFontInfo::GetPointSize() const wxSize wxNativeFontInfo::GetPixelSize() const { wxSize ret; - ret.SetHeight(lf.lfHeight); + ret.SetHeight(abs((int)lf.lfHeight)); ret.SetWidth(lf.lfWidth); return ret; } @@ -895,12 +895,12 @@ wxFont::~wxFont() // real implementation // ---------------------------------------------------------------------------- -wxObjectRefData *wxFont::CreateRefData() const +wxGDIRefData *wxFont::CreateGDIRefData() const { return new wxFontRefData(); } -wxObjectRefData *wxFont::CloneRefData(const wxObjectRefData *data) const +wxGDIRefData *wxFont::CloneGDIRefData(const wxGDIRefData *data) const { return new wxFontRefData(*wx_static_cast(const wxFontRefData *, data)); }