flush Cairo surface before converting to wxImage
This commit is contained in:
@@ -1564,6 +1564,7 @@ wxImage wxCairoBitmapData::ConvertToImage() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Prepare for copying data.
|
// Prepare for copying data.
|
||||||
|
cairo_surface_flush(m_surface);
|
||||||
const wxUint32* src = (wxUint32*)cairo_image_surface_get_data(m_surface);
|
const wxUint32* src = (wxUint32*)cairo_image_surface_get_data(m_surface);
|
||||||
wxCHECK_MSG( src, wxNullImage, wxS("Failed to get Cairo surface data.") );
|
wxCHECK_MSG( src, wxNullImage, wxS("Failed to get Cairo surface data.") );
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user