]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/font.cpp
minimize overlay area to avoid eg scrolling artifacts when using a caret
[wxWidgets.git] / 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);