I'm not totally sure when they were added, but the cairo_image_surface_get_[width|height] functions are not available in cairo 1.10.2.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@77734 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2014-09-19 23:21:58 +00:00
parent 77df2f30a4
commit e469fbb57a

View File

@@ -1317,8 +1317,12 @@ wxCairoBitmapData::wxCairoBitmapData( wxGraphicsRenderer* renderer, cairo_surfac
m_surface = bitmap;
m_pattern = cairo_pattern_create_for_surface(m_surface);
m_width = cairo_image_surface_get_width(m_surface);
m_height = cairo_image_surface_get_height(m_surface);
#if CAIRO_VERSION >= CAIRO_VERSION_ENCODE(1,11,0)
if ( cairo_version() >= CAIRO_VERSION_ENCODE(1, 11, 0) )
m_width = cairo_image_surface_get_width(m_surface);
m_height = cairo_image_surface_get_height(m_surface);
}
#endif
m_buffer = NULL;
}