]> git.saurik.com Git - wxWidgets.git/commitdiff
adopt new set font API
authorStefan Csomor <csomor@advancedconcepts.ch>
Thu, 26 Oct 2006 07:44:07 +0000 (07:44 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Thu, 26 Oct 2006 07:44:07 +0000 (07:44 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42434 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/font.cpp

index 75ea3f918ada154f72e5fc9e6464d07c7f51e6f3..0a0f8a432205417619c26af5d52b2db0c74bfe7f 100644 (file)
@@ -533,7 +533,7 @@ wxSize wxFont::GetPixelSize() const
 #if wxUSE_GRAPHICS_CONTEXT
     // TODO: consider caching the value
     wxGraphicsContext* dc = wxGraphicsContext::CreateFromNative((CGContextRef) NULL);
-    dc->SetFont(*(wxFont *)this);
+    dc->SetFont(*(wxFont *)this,*wxBLACK);
     wxDouble width, height = 0;
     dc->GetTextExtent( wxT("g"), &width, &height, NULL, NULL); 
     return wxSize(width, height);