X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ce6b1014bfc5a1451149fa19a95772be3b57236a..9ff4b6ccd9c918a4b7b83a6ed263a7d545bb32fb:/src/generic/graphicc.cpp diff --git a/src/generic/graphicc.cpp b/src/generic/graphicc.cpp index 9b9e88b22f..d2150dfae9 100644 --- a/src/generic/graphicc.cpp +++ b/src/generic/graphicc.cpp @@ -785,7 +785,7 @@ void wxCairoFontData::Apply( wxGraphicsContext* context ) cairo_set_font_face(ctext, m_font); cairo_set_font_size(ctext, m_size ); #else - cairo_select_font_face(ctext, m_fontName, m_slant, m_weights ); + cairo_select_font_face(ctext, m_fontName, m_slant, m_weight ); cairo_set_font_size(ctext, m_size ); #endif } @@ -1071,6 +1071,7 @@ wxCairoBitmapData::wxCairoBitmapData( wxGraphicsRenderer* renderer, const wxBitm { wxCHECK_RET( bmp.IsOk(), wxT("Invalid bitmap in wxCairoContext::DrawBitmap")); +#ifdef wxHAS_RAW_BITMAP int bw = m_width = bmp.GetWidth(); int bh = m_height = bmp.GetHeight(); wxBitmap bmpSource = bmp; // we need a non-const instance @@ -1138,6 +1139,7 @@ wxCairoBitmapData::wxCairoBitmapData( wxGraphicsRenderer* renderer, const wxBitm } } m_pattern = cairo_pattern_create_for_surface(m_surface); +#endif // wxHAS_RAW_BITMAP } wxCairoBitmapData::~wxCairoBitmapData() @@ -1830,8 +1832,7 @@ wxGraphicsContext * wxCairoRenderer::CreateContextFromNativeContext( void * cont { #ifdef __WXMSW__ return new wxCairoContext(this,(HDC)context); -#endif -#ifdef __WXGTK__ +#else return new wxCairoContext(this,(cairo_t*)context); #endif }