#ifndef WX_PRECOMP
#include "wx/intl.h"
+ #include "wx/settings.h"
#endif
#include "wx/mac/uma.h"
{
wxFontEncoding enc;
if ( m_font.Ok() )
- enc = m_font.GetEncoding();
+ enc = GetFont().GetEncoding();
else
enc = wxLocale::GetSystemEncoding();
wxCFStringRef cfTitle;
if (bgColor == wxNullColour)
bgColor = listBgColor;
- wxFont listFont = list->GetFont();
- if (font == wxNullFont)
- font = listFont;
+ if (!font.Ok())
+ font = list->GetFont();
wxCFStringRef cfString( text, wxLocale::GetSystemEncoding() );
}
CGContextSaveGState(context);
- CGContextSetRGBFillColor(context, (float)backgroundColor.red / (float)USHRT_MAX,
- (float)backgroundColor.green / (float)USHRT_MAX,
- (float)backgroundColor.blue / (float)USHRT_MAX, 1.0);
+ CGContextSetRGBFillColor(context, (CGFloat)backgroundColor.red / (CGFloat)USHRT_MAX,
+ (CGFloat)backgroundColor.green / (CGFloat)USHRT_MAX,
+ (CGFloat)backgroundColor.blue / (CGFloat)USHRT_MAX, (CGFloat) 1.0);
CGContextFillRect(context, enclosingCGRect);
CGContextRestoreGState(context);
bgColor.GetRGBColor(&backgroundColor);
CGContextSaveGState(context);
- CGContextSetRGBFillColor(context, (float)backgroundColor.red / (float)USHRT_MAX,
- (float)backgroundColor.green / (float)USHRT_MAX,
- (float)backgroundColor.blue / (float)USHRT_MAX, 1.0);
+ CGContextSetRGBFillColor(context, (CGFloat)backgroundColor.red / (CGFloat)USHRT_MAX,
+ (CGFloat)backgroundColor.green / (CGFloat)USHRT_MAX,
+ (CGFloat)backgroundColor.blue / (CGFloat)USHRT_MAX, (CGFloat) 1.0);
CGContextFillRect(context, enclosingCGRect);
CGContextRestoreGState(context);
if (font.Ok())
{
- if (font.GetFamily() != wxFONTFAMILY_DEFAULT)
- info.fontID = font.MacGetThemeFontID();
+ info.fontID = font.MacGetThemeFontID();
::TextSize( (short)(font.MacGetFontSize()) ) ;
::TextFace( font.MacGetFontStyle() ) ;
info.truncationMaxLines = 1;
CGContextSaveGState(context);
- CGContextSetRGBFillColor (context, (float)labelColor.red / (float)USHRT_MAX,
- (float)labelColor.green / (float)USHRT_MAX,
- (float)labelColor.blue / (float)USHRT_MAX, 1.0);
+ CGContextSetRGBFillColor (context, (CGFloat)labelColor.red / (CGFloat)USHRT_MAX,
+ (CGFloat)labelColor.green / (CGFloat)USHRT_MAX,
+ (CGFloat)labelColor.blue / (CGFloat)USHRT_MAX, (CGFloat) 1.0);
HIThemeDrawTextBox(cfString, &textCGRect, &info, context, kHIThemeOrientationNormal);
OSStatus err = errDataBrowserPropertyNotSupported;
wxListCtrl* list = wxDynamicCast( GetPeer() , wxListCtrl );
- wxMacListCtrlItem* lcItem;
+ wxMacListCtrlItem* lcItem = NULL;
if (listColumn >= 0)
{