]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/font.cpp
Better fix
[wxWidgets.git] / src / msw / font.cpp
index eec88f8c060c4cd94b05e10dfe2759b4c80f1433..f2ff677d8a5549ceb1bb0df591115c79328be2fd 100644 (file)
@@ -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));
 }