cairo_image_surface_get_{width,height} have been available in cairo since version 1.0
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77758 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
7172fdc01b
commit
16601713a4
@ -1328,13 +1328,8 @@ wxCairoBitmapData::wxCairoBitmapData( wxGraphicsRenderer* renderer, cairo_surfac
|
||||
m_surface = bitmap;
|
||||
m_pattern = cairo_pattern_create_for_surface(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_width = cairo_image_surface_get_width(m_surface);
|
||||
m_height = cairo_image_surface_get_height(m_surface);
|
||||
m_buffer = NULL;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user