X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ccd67a6af88981a8c1a2b752a14051fe7698814b..b20907ef2dbae2ce3b94e50107012165d7f0b917:/src/mac/carbon/font.cpp diff --git a/src/mac/carbon/font.cpp b/src/mac/carbon/font.cpp index 75ea3f918a..0650fe78d9 100644 --- a/src/mac/carbon/font.cpp +++ b/src/mac/carbon/font.cpp @@ -533,10 +533,10 @@ 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); + dc->GetTextExtent( wxT("g"), &width, &height, NULL, NULL); + return wxSize((int)width, (int)height); #else wxFontBase::GetPixelSize(); #endif