]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/fontcmn.cpp
fixes to static box borders calculations and significant code cleanup (finalizes...
[wxWidgets.git] / src / common / fontcmn.cpp
index c2de94c21efa34915ef0dca54079b0a82ef30ab0..2c0415e7e9954d8cdf2e9aaf0f17daa44c3ff5c1 100644 (file)
 // helper functions
 // ----------------------------------------------------------------------------
 
-static void AdjustFontSize(wxFont font, wxDC& dc, const wxSize& pixelSize)
+static void AdjustFontSize(wxFont& font, wxDC& dc, const wxSize& pixelSize)
 {
     int currentSize = font.GetPointSize();
-    int largestGood;
-    int smallestBad;
+    int largestGood = 0;
+    int smallestBad = 0;
 
     bool initialGoodFound = false;
     bool initialBadFound = false;
@@ -602,7 +602,7 @@ wxString wxNativeFontInfo::ToUserString() const
     wxFontEncoding enc = GetEncoding();
     if ( enc != wxFONTENCODING_DEFAULT && enc != wxFONTENCODING_SYSTEM )
     {
-        desc << _T(' ') << wxFontMapper::Get()->GetEncodingName(enc);
+        desc << _T(' ') << wxFontMapper::GetEncodingName(enc);
     }
 #endif // wxUSE_FONTMAP