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/trunk@77735 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
22d4c8b2c7
commit
b25a6a4bb6
@ -1328,8 +1328,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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user