]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/resource.cpp
Bunch of GTK theme changes.
[wxWidgets.git] / src / common / resource.cpp
index a6446d9710e5a85ed71eca96b533c303c3c19071..782e63157c09d86f22a605006aad24080d89cb5b 100644 (file)
@@ -1484,8 +1484,8 @@ wxFont wxResourceInterpretFontSpec(wxExpr *expr)
     if (faceNameExpr)
         faceName = faceNameExpr->StringValue();
 
-    wxFont font(point, family, style, weight, (underline != 0), faceName);
-    return font;
+    return *wxTheFontList->FindOrCreateFont(point, family, style, weight,
+                                            (underline != 0), faceName);
 }
 
 // Separate file for the remainder of this, for BC++/Win16
@@ -2049,7 +2049,7 @@ wxChar* wxResourceParseWord(wxChar*s, int *i)
 
 struct wxResourceBitListStruct
 {
-    wxChar *word;
+    const wxChar *word;
     long bits;
 };